mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-11-10 08:47:46 +01:00
Fix to ignore click suppression on inputs
This commit is contained in:
parent
40579c3e0c
commit
8ae6e9fc61
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ export default class Block extends React.Component {
|
|||
const nativeEvent = event.nativeEvent;
|
||||
const contains = this._blockEl.contains(el);
|
||||
|
||||
if (contains) {
|
||||
if (event.nativeEvent.target.nodeName !== "INPUT" && contains) {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue