fix toggleHpTools to support split primary button (#3900)
Fixes a small bug in toggling buttons with hanging protocols.
This commit is contained in:
1 parent
ed2bf23cd2
commit
ef46b5a704
1 file changed
+4
-1
@@ -121,7 +121,10 @@ const commandsModule = ({
|
||||
if (!button.id) {
|
||||
return;
|
||||
}
|
||||
const { commands, items } = button.props || button;
|
||||
const { commands, items, primary } = button.props || button;
|
||||
if (primary) {
|
||||
enableListener(primary);
|
||||
}
|
||||
if (items) {
|
||||
items.forEach(enableListener);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user