Skip to content

Commit 747c63e

Browse files
committed
fix: recognize button so it wont bubble up
1 parent fb4ee45 commit 747c63e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/lazy-components/design-library/design-library-list/design-library-list-item.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const DesignLibraryListItem = memo( props => {
9797
}
9898

9999
const tag = target.tagName
100-
return tag === 'INPUT' || tag === 'TEXTAREA' || tag === 'SELECT' || target.isContentEditable
100+
return tag === 'INPUT' || tag === 'TEXTAREA' || tag === 'SELECT' || tag === 'BUTTON' || target.isContentEditable
101101
}
102102

103103
const buttonAttributes = {

0 commit comments

Comments
 (0)