Skip to content

fix(ui5-multi-combobox): fix JS error on phone #2795

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 9, 2021
Merged

Conversation

ilhan007
Copy link
Member

@ilhan007 ilhan007 commented Feb 8, 2021

Fix JS error thrown on phone (Chrome phone emulator as well). It happens, because the selectedValues array is never declared, but accessed as "this.selectedValues.length" through the "_showAllItemsButtonPressed" getter upon initial rendering. To reproduce the issue you can use Chrome phone emulator and open https://sap.github.io/ui5-webcomponents/master/playground/main/pages/MultiComboBox/ on phone.

Fix JS error thrown on phone (Chrome phone emulator as well). It happens, because the selectedValues array is never declared, but accessed as "this.selectedValues.length" through the "_showAllItemsButtonPressed" getter upon initial rendering.
To reproduce the issue you can use Chrome phone emulator and open https://sap.github.io/ui5-webcomponents/master/playground/main/pages/MultiComboBox/ on phone.
@ilhan007 ilhan007 requested review from MapTo0 and vladitasev February 8, 2021 09:16
@ilhan007 ilhan007 changed the title chore(ui5-multi-combobox): fix JS error on phone fix(ui5-multi-combobox): fix JS error on phone Feb 8, 2021
@ilhan007 ilhan007 requested review from vladitasev, MapTo0, niyap and ivoplashkov and removed request for MapTo0 and vladitasev February 9, 2021 13:14
@ilhan007 ilhan007 merged commit 282df4b into master Feb 9, 2021
@ilhan007 ilhan007 deleted the fix-mcb-js-error branch February 9, 2021 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants