Before, when a single-value Typeahead is disabled, one can still change the selection by clicking on Change button to open the item container and then make a selection there. Fixed by not registering ToggleClick action on the Change button (a span styled as a button which doesn't support disabled prop) when the Typeahead is disabled.
How should this be manually tested?
[x] make
[x] open dist/index.html and go to Typeahead tab (#typeaheads)
[x] scroll down to Typeaheads - State Variants section, second example on the left, and click on the Change button
nothing should happen
you can check the broken behavior in current UI Guide for comparison
What does this pull request do?
Before, when a single-value Typeahead is disabled, one can still change the selection by clicking on
Change
button to open the item container and then make a selection there. Fixed by not registeringToggleClick
action on theChange
button (aspan
styled as a button which doesn't supportdisabled
prop) when the Typeahead is disabled.How should this be manually tested?
make
dist/index.html
and go to Typeahead tab (#typeaheads
)Typeaheads - State Variants
section, second example on the left, and click on theChange
button