Skip to content

[9.1] [Controls] Fix error when selecting "(blank)" value in options list (#239791)#239813

Merged
kibanamachine merged 1 commit intoelastic:9.1from
kibanamachine:backport/9.1/pr-239791
Oct 20, 2025
Merged

[9.1] [Controls] Fix error when selecting "(blank)" value in options list (#239791)#239813
kibanamachine merged 1 commit intoelastic:9.1from
kibanamachine:backport/9.1/pr-239791

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 9.1:

Questions ?

Please refer to the Backport tool documentation

…lastic#239791)

Fixes elastic#239735

## Summary

Fixes an error in the Options list control when selecting a "(blank)"
value.

Makes the boolean check for key more explicit using [loose equality to
check if the key is null or
undefined](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Equality_comparisons_and_sameness#loose_equality_using).
Without this, selecting a `""` value causes the control to error.

(cherry picked from commit 3675825)
@kibanamachine kibanamachine merged commit 0c64734 into elastic:9.1 Oct 20, 2025
16 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
controls 482.4KB 482.5KB +5.0B

cc @nickpeihl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

3 participants