Welcome to the JavaScript feedback portal. We’re happy you’re here! If you have feedback on how to improve the JavaScript, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Issue: The DropDownButton component injected into the Grid component's toolbar does not properly remove event listeners when disabled, leading to multiple bindings to the click handler.

Steps to Reproduce:

  1. Inject DropDownButton into the Grid component's toolbar.
  2. Enable the DropDownButton when one or more rows in the grid are selected.
  3. Disable the DropDownButton when no rows are selected.
  4. Repeat the enable/disable cycle multiple times.
  5. Observe multiple click event bindings on the DropDownButton.

Observed Behavior: The syncfusionComponent.disabled method fails to remove event listeners, resulting in multiple bindings to the click handler.

Workaround: Use the following code to clear existing event listeners:

EventHandler.clearEvents(button.element)