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
…re checking the value
Adds a guard to check that `event.target.attributes["data-element"]` is not undefined before
checking if the value is `"input"`
fix#3754
### [68.9.1](v68.9.0...v68.9.1) (2021-04-08)
### Bug Fixes
* **filterable-select:** check event has a data element attribute before checking the value ([39db098](39db098)), closes [#3754](#3754)
Current behaviour
When clicking on the select component it intermittently throws an error.
Expected behaviour
It should not throw an error
Reproducible example
https://codesandbox.io/s/cocky-napier-jmfe6?file=/src/index.js
Suggested solution(s)
The component does not check for the existence of the
data-element
attribute on the target element before inspecting its value.See here:
carbon/src/components/select/filterable-select/filterable-select.component.js
Line 389 in c18255b
Your environment
The text was updated successfully, but these errors were encountered: