Skip to content

How to close opened draw control? #1558

Closed Answered by mbajur
mbajur asked this question in Questions & Help
Discussion options

You must be logged in to vote

The solution @Falke-Design gave above did not helped me but what did helped me was using:

afterClick: (e, ctx) =>  {
  if (result === true) {
    do_something
  } else {
    ctx.button.toggle() // <-- this
  }
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mbajur
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants