Skip to content

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

Merged
nickpeihl merged 1 commit intoelastic:mainfrom
nickpeihl:fix-239735
Oct 20, 2025
Merged

[Controls] Fix error when selecting "(blank)" value in options list#239791
nickpeihl merged 1 commit intoelastic:mainfrom
nickpeihl:fix-239735

Conversation

@nickpeihl
Copy link
Contributor

@nickpeihl nickpeihl commented Oct 20, 2025

Fixes #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. Without this, selecting a "" value causes the control to error.

@nickpeihl nickpeihl added release_note:fix Feature:Input Control Input controls visualization Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// backport:version Backport to applied version labels v9.2.0 v9.1.6 v8.19.6 labels Oct 20, 2025
@nickpeihl nickpeihl marked this pull request as ready for review October 20, 2025 17:45
@nickpeihl nickpeihl requested a review from a team as a code owner October 20, 2025 17:45
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

Copy link
Contributor

@ThomThomson ThomThomson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work and thanks for the quick turnaround on this issue. It's awesome to see this kind of SDH -> PR flow. LGTM!

});
});

test('renders a "(blank)" option', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great test case!

@elasticmachine
Copy link
Contributor

⏳ Build in-progress, with failures

Failed CI Steps

@nickpeihl nickpeihl merged commit 3675825 into elastic:main Oct 20, 2025
30 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19, 9.1, 9.2

https://github.com/elastic/kibana/actions/runs/18663217291

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 20, 2025
…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 pushed a commit to kibanamachine/kibana that referenced this pull request Oct 20, 2025
…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 pushed a commit to kibanamachine/kibana that referenced this pull request Oct 20, 2025
…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
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.19
9.1
9.2

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 20, 2025
…list (#239791) (#239813)

# Backport

This will backport the following commits from `main` to `9.1`:
- [[Controls] Fix error when selecting "(blank)" value in options list
(#239791)](#239791)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Nick
Peihl","email":"nick.peihl@elastic.co"},"sourceCommit":{"committedDate":"2025-10-20T19:52:09Z","message":"[Controls]
Fix error when selecting \"(blank)\" value in options list
(#239791)\n\nFixes #239735\n\n## Summary\n\nFixes an error in the
Options list control when selecting a \"(blank)\"\nvalue.\n\nMakes the
boolean check for key more explicit using [loose equality to\ncheck if
the key is null
or\nundefined](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Equality_comparisons_and_sameness#loose_equality_using).\nWithout
this, selecting a `\"\"` value causes the control to
error.","sha":"36758259f660d3d512b5f90ee3f5dadd7c3114b9","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Feature:Input
Control","Team:Presentation","backport:version","v9.2.0","v9.3.0","v9.1.6","v8.19.6"],"title":"[Controls]
Fix error when selecting \"(blank)\" value in options
list","number":239791,"url":"https://github.com/elastic/kibana/pull/239791","mergeCommit":{"message":"[Controls]
Fix error when selecting \"(blank)\" value in options list
(#239791)\n\nFixes #239735\n\n## Summary\n\nFixes an error in the
Options list control when selecting a \"(blank)\"\nvalue.\n\nMakes the
boolean check for key more explicit using [loose equality to\ncheck if
the key is null
or\nundefined](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Equality_comparisons_and_sameness#loose_equality_using).\nWithout
this, selecting a `\"\"` value causes the control to
error.","sha":"36758259f660d3d512b5f90ee3f5dadd7c3114b9"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","9.1","8.19"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/239791","number":239791,"mergeCommit":{"message":"[Controls]
Fix error when selecting \"(blank)\" value in options list
(#239791)\n\nFixes #239735\n\n## Summary\n\nFixes an error in the
Options list control when selecting a \"(blank)\"\nvalue.\n\nMakes the
boolean check for key more explicit using [loose equality to\ncheck if
the key is null
or\nundefined](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Equality_comparisons_and_sameness#loose_equality_using).\nWithout
this, selecting a `\"\"` value causes the control to
error.","sha":"36758259f660d3d512b5f90ee3f5dadd7c3114b9"}},{"branch":"9.1","label":"v9.1.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Nick Peihl <nick.peihl@elastic.co>
kibanamachine added a commit that referenced this pull request Oct 20, 2025
… list (#239791) (#239812)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Controls] Fix error when selecting "(blank)" value in options list
(#239791)](#239791)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Nick
Peihl","email":"nick.peihl@elastic.co"},"sourceCommit":{"committedDate":"2025-10-20T19:52:09Z","message":"[Controls]
Fix error when selecting \"(blank)\" value in options list
(#239791)\n\nFixes #239735\n\n## Summary\n\nFixes an error in the
Options list control when selecting a \"(blank)\"\nvalue.\n\nMakes the
boolean check for key more explicit using [loose equality to\ncheck if
the key is null
or\nundefined](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Equality_comparisons_and_sameness#loose_equality_using).\nWithout
this, selecting a `\"\"` value causes the control to
error.","sha":"36758259f660d3d512b5f90ee3f5dadd7c3114b9","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Feature:Input
Control","Team:Presentation","backport:version","v9.2.0","v9.3.0","v9.1.6","v8.19.6"],"title":"[Controls]
Fix error when selecting \"(blank)\" value in options
list","number":239791,"url":"https://github.com/elastic/kibana/pull/239791","mergeCommit":{"message":"[Controls]
Fix error when selecting \"(blank)\" value in options list
(#239791)\n\nFixes #239735\n\n## Summary\n\nFixes an error in the
Options list control when selecting a \"(blank)\"\nvalue.\n\nMakes the
boolean check for key more explicit using [loose equality to\ncheck if
the key is null
or\nundefined](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Equality_comparisons_and_sameness#loose_equality_using).\nWithout
this, selecting a `\"\"` value causes the control to
error.","sha":"36758259f660d3d512b5f90ee3f5dadd7c3114b9"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","9.1","8.19"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/239791","number":239791,"mergeCommit":{"message":"[Controls]
Fix error when selecting \"(blank)\" value in options list
(#239791)\n\nFixes #239735\n\n## Summary\n\nFixes an error in the
Options list control when selecting a \"(blank)\"\nvalue.\n\nMakes the
boolean check for key more explicit using [loose equality to\ncheck if
the key is null
or\nundefined](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Equality_comparisons_and_sameness#loose_equality_using).\nWithout
this, selecting a `\"\"` value causes the control to
error.","sha":"36758259f660d3d512b5f90ee3f5dadd7c3114b9"}},{"branch":"9.1","label":"v9.1.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Nick Peihl <nick.peihl@elastic.co>
kibanamachine added a commit that referenced this pull request Oct 20, 2025
…list (#239791) (#239814)

# Backport

This will backport the following commits from `main` to `9.2`:
- [[Controls] Fix error when selecting "(blank)" value in options list
(#239791)](#239791)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Nick
Peihl","email":"nick.peihl@elastic.co"},"sourceCommit":{"committedDate":"2025-10-20T19:52:09Z","message":"[Controls]
Fix error when selecting \"(blank)\" value in options list
(#239791)\n\nFixes #239735\n\n## Summary\n\nFixes an error in the
Options list control when selecting a \"(blank)\"\nvalue.\n\nMakes the
boolean check for key more explicit using [loose equality to\ncheck if
the key is null
or\nundefined](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Equality_comparisons_and_sameness#loose_equality_using).\nWithout
this, selecting a `\"\"` value causes the control to
error.","sha":"36758259f660d3d512b5f90ee3f5dadd7c3114b9","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Feature:Input
Control","Team:Presentation","backport:version","v9.2.0","v9.3.0","v9.1.6","v8.19.6"],"title":"[Controls]
Fix error when selecting \"(blank)\" value in options
list","number":239791,"url":"https://github.com/elastic/kibana/pull/239791","mergeCommit":{"message":"[Controls]
Fix error when selecting \"(blank)\" value in options list
(#239791)\n\nFixes #239735\n\n## Summary\n\nFixes an error in the
Options list control when selecting a \"(blank)\"\nvalue.\n\nMakes the
boolean check for key more explicit using [loose equality to\ncheck if
the key is null
or\nundefined](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Equality_comparisons_and_sameness#loose_equality_using).\nWithout
this, selecting a `\"\"` value causes the control to
error.","sha":"36758259f660d3d512b5f90ee3f5dadd7c3114b9"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","9.1","8.19"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/239791","number":239791,"mergeCommit":{"message":"[Controls]
Fix error when selecting \"(blank)\" value in options list
(#239791)\n\nFixes #239735\n\n## Summary\n\nFixes an error in the
Options list control when selecting a \"(blank)\"\nvalue.\n\nMakes the
boolean check for key more explicit using [loose equality to\ncheck if
the key is null
or\nundefined](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Equality_comparisons_and_sameness#loose_equality_using).\nWithout
this, selecting a `\"\"` value causes the control to
error.","sha":"36758259f660d3d512b5f90ee3f5dadd7c3114b9"}},{"branch":"9.1","label":"v9.1.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Nick Peihl <nick.peihl@elastic.co>
nickpeihl added a commit to nickpeihl/kibana that referenced this pull request Oct 23, 2025
…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.
NicholasPeretti pushed a commit to NicholasPeretti/kibana that referenced this pull request Oct 27, 2025
…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.
Zacqary added a commit that referenced this pull request Nov 10, 2025
## Summary

Closes #241750

Fixes an error with deselecting a `(blank)` option from an options list.

The same error when *selecting* the option was fixed in
#239791, but we missed fixing it
for deselection.


### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 10, 2025
…242036)

## Summary

Closes elastic#241750

Fixes an error with deselecting a `(blank)` option from an options list.

The same error when *selecting* the option was fixed in
elastic#239791, but we missed fixing it
for deselection.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 783f287)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 10, 2025
…242036)

## Summary

Closes elastic#241750

Fixes an error with deselecting a `(blank)` option from an options list.

The same error when *selecting* the option was fixed in
elastic#239791, but we missed fixing it
for deselection.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 783f287)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 10, 2025
…242036)

## Summary

Closes elastic#241750

Fixes an error with deselecting a `(blank)` option from an options list.

The same error when *selecting* the option was fixed in
elastic#239791, but we missed fixing it
for deselection.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 783f287)
kibanamachine added a commit that referenced this pull request Nov 10, 2025
…42036) (#242473)

# Backport

This will backport the following commits from `main` to `9.2`:
- [[Controls] Fix deselecting (blank) option from options list
(#242036)](#242036)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Zac
Xeper","email":"Zacqary@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-11-10T19:31:00Z","message":"[Controls]
Fix deselecting (blank) option from options list (#242036)\n\n##
Summary\n\nCloses
https://github.com/elastic/kibana/issues/241750\n\nFixes an error with
deselecting a `(blank)` option from an options list.\n\nThe same error
when *selecting* the option was fixed
in\nhttps://github.com//pull/239791, but we missed fixing
it\nfor deselection.\n\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"783f287fb0ec41359eacc335f0258aaebeb377d1","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Feature:Input
Control","Team:Presentation","Project:Controls","backport:version","v9.2.0","v9.3.0","v8.19.7","v9.1.7"],"title":"[Controls]
Fix deselecting (blank) option from options
list","number":242036,"url":"https://github.com/elastic/kibana/pull/242036","mergeCommit":{"message":"[Controls]
Fix deselecting (blank) option from options list (#242036)\n\n##
Summary\n\nCloses
https://github.com/elastic/kibana/issues/241750\n\nFixes an error with
deselecting a `(blank)` option from an options list.\n\nThe same error
when *selecting* the option was fixed
in\nhttps://github.com//pull/239791, but we missed fixing
it\nfor deselection.\n\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"783f287fb0ec41359eacc335f0258aaebeb377d1"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","8.19","9.1"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/242036","number":242036,"mergeCommit":{"message":"[Controls]
Fix deselecting (blank) option from options list (#242036)\n\n##
Summary\n\nCloses
https://github.com/elastic/kibana/issues/241750\n\nFixes an error with
deselecting a `(blank)` option from an options list.\n\nThe same error
when *selecting* the option was fixed
in\nhttps://github.com//pull/239791, but we missed fixing
it\nfor deselection.\n\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"783f287fb0ec41359eacc335f0258aaebeb377d1"}},{"branch":"8.19","label":"v8.19.7","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.1","label":"v9.1.7","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Zac Xeper <Zacqary@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Nov 10, 2025
…242036) (#242471)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Controls] Fix deselecting (blank) option from options list
(#242036)](#242036)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Zac
Xeper","email":"Zacqary@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-11-10T19:31:00Z","message":"[Controls]
Fix deselecting (blank) option from options list (#242036)\n\n##
Summary\n\nCloses
https://github.com/elastic/kibana/issues/241750\n\nFixes an error with
deselecting a `(blank)` option from an options list.\n\nThe same error
when *selecting* the option was fixed
in\nhttps://github.com//pull/239791, but we missed fixing
it\nfor deselection.\n\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"783f287fb0ec41359eacc335f0258aaebeb377d1","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Feature:Input
Control","Team:Presentation","Project:Controls","backport:version","v9.2.0","v9.3.0","v8.19.7","v9.1.7"],"title":"[Controls]
Fix deselecting (blank) option from options
list","number":242036,"url":"https://github.com/elastic/kibana/pull/242036","mergeCommit":{"message":"[Controls]
Fix deselecting (blank) option from options list (#242036)\n\n##
Summary\n\nCloses
https://github.com/elastic/kibana/issues/241750\n\nFixes an error with
deselecting a `(blank)` option from an options list.\n\nThe same error
when *selecting* the option was fixed
in\nhttps://github.com//pull/239791, but we missed fixing
it\nfor deselection.\n\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"783f287fb0ec41359eacc335f0258aaebeb377d1"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","8.19","9.1"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/242036","number":242036,"mergeCommit":{"message":"[Controls]
Fix deselecting (blank) option from options list (#242036)\n\n##
Summary\n\nCloses
https://github.com/elastic/kibana/issues/241750\n\nFixes an error with
deselecting a `(blank)` option from an options list.\n\nThe same error
when *selecting* the option was fixed
in\nhttps://github.com//pull/239791, but we missed fixing
it\nfor deselection.\n\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"783f287fb0ec41359eacc335f0258aaebeb377d1"}},{"branch":"8.19","label":"v8.19.7","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.1","label":"v9.1.7","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Zac Xeper <Zacqary@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Nov 10, 2025
…42036) (#242472)

# Backport

This will backport the following commits from `main` to `9.1`:
- [[Controls] Fix deselecting (blank) option from options list
(#242036)](#242036)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Zac
Xeper","email":"Zacqary@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-11-10T19:31:00Z","message":"[Controls]
Fix deselecting (blank) option from options list (#242036)\n\n##
Summary\n\nCloses
https://github.com/elastic/kibana/issues/241750\n\nFixes an error with
deselecting a `(blank)` option from an options list.\n\nThe same error
when *selecting* the option was fixed
in\nhttps://github.com//pull/239791, but we missed fixing
it\nfor deselection.\n\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"783f287fb0ec41359eacc335f0258aaebeb377d1","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Feature:Input
Control","Team:Presentation","Project:Controls","backport:version","v9.2.0","v9.3.0","v8.19.7","v9.1.7"],"title":"[Controls]
Fix deselecting (blank) option from options
list","number":242036,"url":"https://github.com/elastic/kibana/pull/242036","mergeCommit":{"message":"[Controls]
Fix deselecting (blank) option from options list (#242036)\n\n##
Summary\n\nCloses
https://github.com/elastic/kibana/issues/241750\n\nFixes an error with
deselecting a `(blank)` option from an options list.\n\nThe same error
when *selecting* the option was fixed
in\nhttps://github.com//pull/239791, but we missed fixing
it\nfor deselection.\n\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"783f287fb0ec41359eacc335f0258aaebeb377d1"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","8.19","9.1"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/242036","number":242036,"mergeCommit":{"message":"[Controls]
Fix deselecting (blank) option from options list (#242036)\n\n##
Summary\n\nCloses
https://github.com/elastic/kibana/issues/241750\n\nFixes an error with
deselecting a `(blank)` option from an options list.\n\nThe same error
when *selecting* the option was fixed
in\nhttps://github.com//pull/239791, but we missed fixing
it\nfor deselection.\n\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"783f287fb0ec41359eacc335f0258aaebeb377d1"}},{"branch":"8.19","label":"v8.19.7","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.1","label":"v9.1.7","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Zac Xeper <Zacqary@users.noreply.github.com>
eokoneyo pushed a commit to eokoneyo/kibana that referenced this pull request Dec 2, 2025
…242036)

## Summary

Closes elastic#241750

Fixes an error with deselecting a `(blank)` option from an options list.

The same error when *selecting* the option was fixed in
elastic#239791, but we missed fixing it
for deselection.


### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels Feature:Input Control Input controls visualization release_note:fix Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v8.19.6 v9.1.6 v9.2.0 v9.3.0

4 participants