mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix SimpleDropdown event bubbling (#7627)
This commit is contained in:
parent
b8e3957542
commit
4ec92ceed3
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user