AlertifyJS
AlertifyJS copied to clipboard
Handle clicks on the button child elements
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.)
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!
You can simply add style="pointer-events:none" to the wrapper. Doesn't that work ?
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.