The auroCombobox-valueSet is being fired twice when the value is being changed, when it only needs to be called once within the handleInputValueChange method.
Possible Solution
Remove the dispatch of this event within the auroMenu-selectedOption event listener.
Context
Within the auroMenu-selectedOption event listener, we change the value of this.input.value. Whenever this.input.value is changed, we make a call to dispatch auroCombobox-valueSet, whether or not a menu option was selected. So once a menu option is selected, we are making a call to handleInputValueChange, which dispatches the event, then we unnecessarily dispatch the event a second time within this function.
General Support Request
Support request
The
auroCombobox-valueSet
is being fired twice when the value is being changed, when it only needs to be called once within thehandleInputValueChange
method.Possible Solution
Remove the dispatch of this event within the
auroMenu-selectedOption
event listener.Context
Within the
auroMenu-selectedOption
event listener, we change the value ofthis.input.value
. Wheneverthis.input.value
is changed, we make a call to dispatchauroCombobox-valueSet
, whether or not a menu option was selected. So once a menu option is selected, we are making a call tohandleInputValueChange
, which dispatches the event, then we unnecessarily dispatch the event a second time within this function.