[QUESTIONS] Sender.set('active') error Maximum call stack size exceeded
Question
I have a button with the show-left command, I want to make when the button is clicked a second time (or more) remains active, but when running Sender.set ('active') in the stop function, there is a loop on stop so that an error appears Maximum call stack size exceeded
First click
Second click

My Commands

Answers (3)
Create a reproducible demo, please
I have 3 buttons, I want when the button is clicked for the second time (or more), the button remains active, for example, when first clicking on the layer, the layer button becomes active, if clicked again the layer button will remain active
my button
at the moment my button when active and then clicked will change deactive

use togglable: false instead of togglable: true
Related Questions and Answers
Continue research with similar issue discussions.
Issue #629
traits sometime does not fire event
sometime traits change event does not fire event on model and view and I have seen below error for that. Uncaught RangeError: Maximum call...
Issue #2004
[QUESTIONS] Add Component(from BlockManager) into Modal
i want to make a button that displays modal, then i can add some component / block into the modal.
Issue #1881
Commands with a stop method, never programmatically stoped don`t run again!
Problem When you add a custom command with stop and dont stop will not run again if I dont set force: 1 as a parameter when running. When y...
Issue #1483
[QUESTIONS] Make a component that can't be removed.
Hi there, Is it possible to make a component that can't be removed or without remove the trach icon when it clicked? Thanks, looking forwar...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.