From 4ec92ceed3c8472833b5a58e9cb9121ca41b1898 Mon Sep 17 00:00:00 2001 From: Whymarrh Whitby Date: Tue, 3 Dec 2019 17:44:19 -0330 Subject: [PATCH] Fix SimpleDropdown event bubbling (#7627) --- ui/app/components/app/dropdowns/simple-dropdown.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/app/components/app/dropdowns/simple-dropdown.js b/ui/app/components/app/dropdowns/simple-dropdown.js index 081674397..96c31ac82 100644 --- a/ui/app/components/app/dropdowns/simple-dropdown.js +++ b/ui/app/components/app/dropdowns/simple-dropdown.js @@ -53,7 +53,8 @@ class SimpleDropdown extends Component { 'simple-dropdown__option--selected': option.value === selectedOption, })} key={option.value} - onClick={() => { + onClick={(event) => { + event.stopPropagation() if (option.value !== selectedOption) { onSelect(option.value) }