You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to suggest a small modification to the Leaflet Cascade Buttons plugin that allows passing the event object to the item command functions. This change can be useful when accessing event properties (such as the event target) within the command functions.
Currently, the command functions for items are called directly without passing any arguments:
This allows for more flexibility when handling item click events.
Thank you for considering this suggestion. I believe this small change can be helpful for developers who want to access event properties within their command functions.
Best regards,
Justin
The text was updated successfully, but these errors were encountered:
Hello,
I would like to suggest a small modification to the Leaflet Cascade Buttons plugin that allows passing the event object to the item command functions. This change can be useful when accessing event properties (such as the event target) within the command functions.
Currently, the command functions for items are called directly without passing any arguments:
I propose changing this line to the following:
With this change, you can define command functions that accept the event object as a parameter, like this:
This allows for more flexibility when handling item click events.
Thank you for considering this suggestion. I believe this small change can be helpful for developers who want to access event properties within their command functions.
Best regards,
Justin
The text was updated successfully, but these errors were encountered: