Ensure there's at least one input selected on Attach Script to Button
Current behavior allows for no button to be selected which results in the action being attached to all the buttons.
@@ -90,7 +90,7 @@ const renderButton = (id, value, onChange) => input => (
}
onChange={() => {
if (Array.isArray(value)) {
- if (value.indexOf(input.key) > -1) {
+ if (value.indexOf(input.key) > -1 && value.length > 1) {
onChange(value.filter(i => i !== input.key));
} else {
onChange([].concat(value, input.key));
