Re: [w3c/webcomponents] Need callback for form submit data (#187)

I would like to propose a async alternative to adress this issue: https://github.com/w3c/html/issues/1289#issuecomment-377772046

When the form is valid,
* Trigger this event feature. 
* Wait for `event.waitUntil` to be resolved so we have time to do some asynchronous validation.<br>For example check if something already taken and maybe set `field.setCustomValidity('username already taken')`)
* If form is still valid then submit the form

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/187#issuecomment-380366652

Received on Wednesday, 11 April 2018 08:13:15 UTC