1
0
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:
Whymarrh Whitby 2019-12-03 17:44:19 -03:30 committed by GitHub
parent b8e3957542
commit 4ec92ceed3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}