`onSelected`: Keep default behavior of events #180
Comments
|
@farzadab Have you resolved? I am faced with the same problem. :( |
|
No, I didn't have many clues to go on really. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there any way to keep the default behavior of events while providing a handler?
From what I understand from this post, unless the overridden function returns
falsethe default behavior should be kept. However, when I provide anonSelectedmethod the default behavior doesn't happen, no matter what the returned value is.TBH, I'm not sure whether what I'm asking for is the expected behavior, but depending on the answer you can interpret this question as a feature request or a request for document clarification.
To make this more clear, what I see when

onSelectedis not provided is that the selected area stays active even after mouse is released and you can even select multiple regions like so:However, when
onSelectedis provided, the selected region disappears after the mouse is released and I cannot reproduce the same behavior (at least not so easily).To give you more context, my specific use-case here is to be able to download the information of the selected points using a separate button that I have created, so the default visual response works well for me.
The text was updated successfully, but these errors were encountered: