3 ms·
>Why? Probably because it's one line in Vanilla.js: confirm("Message")
by fasquoika 9y ago
>Why?
Probably because it's one line in Vanilla.js:
confirm("Message")
- verbify 9y agoThe vanilla solution doesn't offer as many features: * With the vanilla solution, the user can check a box that says 'Prevent this page from creating additional dialogs' (which can break the site). With a non-vanilla solution, the user cannot check that box * The vanilla solution can't be themed in tune with the rest of the site or webapp * The only options you have are 'OK' and 'Cancel' - you may wish to have other buttons/labels for your modal. Never mind if you want three buttons, or a list or the like
- fasquoika 9y agoOf course there isn't perfect feature parity, but considering how much more complex a custom solution is, you should definitely think twice about what that complexity actually gets you