The problem here was that the target on the on click function was getting the underlying elements like the svg or the text instead of the button itself that contains the data-id. pointer-events-none on the elements work. There could be some other options
The problem here was that the target on the on click function was getting the underlying elements like the svg or the text instead of the button itself that contains the data-id. pointer-events-none on the elements work. There could be some other options