You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To repro I added await PageObjects.common.pressEnterKey(); in the combobox service, in the set function to get around the above but then hit this issue when running input control selenium tests.
I'm thinking maybe an async timing issue which matchingOptions and options? Actually I see:
if (areOptionsDifferent) {
this.options = [];
this.setState({ matchingOptions: newMatchingOptions });
if (!newMatchingOptions.length) {
// Prevent endless setState -> componentWillUpdate -> setState loop.
if (this.state.hasActiveOption) {
this.clearActiveOption();
}
}
}
Which seems like then options might be an empty array but matchingOptions might not in which case I could see how it would get hit.
The text was updated successfully, but these errors were encountered:
cchaos
changed the title
Pressing enter in combobox after searching can throw an error
[EuiComboBox] Pressing enter after searching can throw an error
Sep 19, 2020
Closing this as not reproducible due to the age of the bug. In addition, this issue will likely go away when EuiComboBox is converted to use EuiSelectable (#2841)
Hitting this in tests so I'm guessing it's a timing issue. Ran
kbn yan clean && yarn kbn bootstrap
to assure it's not a bad cache issue.See elastic/kibana#22233 for some more context.
To repro I added
await PageObjects.common.pressEnterKey();
in the combobox service, in theset
function to get around the above but then hit this issue when running input control selenium tests.I'm thinking maybe an async timing issue which
matchingOptions
andoptions
? Actually I see:Which seems like then
options
might be an empty array butmatchingOptions
might not in which case I could see how it would get hit.The text was updated successfully, but these errors were encountered: