AlertifyJS icon indicating copy to clipboard operation
AlertifyJS copied to clipboard

Handle clicks on the button child elements

Open utilmind opened this issue 1 year ago • 3 comments

Hi! The buttons are not clickable if the button titles are wrapped inside some HTML elements (child elements of the buttons).

So instead checking the click target, better check whether the button contains the target element.

(I can contribute more improvements, if you're interested, but this one is really important.)

utilmind avatar Dec 07 '23 08:12 utilmind

Also I'm not sure which tool you're using to minify the JavaScript code, please build it as needed after merging my pull request. Thanks!

utilmind avatar Dec 07 '23 08:12 utilmind

You can simply add style="pointer-events:none" to the wrapper. Doesn't that work ?

MohammadYounes avatar Dec 07 '23 08:12 MohammadYounes

I'm sure it will work, but I don't want to do CSS hacks. All elements inside button, all 's and other styling elements should not prevent the button from being pressed.

utilmind avatar Dec 07 '23 08:12 utilmind