don't re-toggle the style back on pressing Spacebar

fixes #501
This commit is contained in:
tophf 2018-09-13 08:36:19 +03:00
parent e128498518
commit 0cffb564ea

View File

@ -328,6 +328,8 @@ Object.assign(handleEvent, {
},
toggle(event) {
// when fired on checkbox, prevent the parent label from seeing the event, see #501
event.stopPropagation();
API.saveStyle({
id: handleEvent.getClickedStyleId(event),
enabled: this.matches('.enable') || this.checked,