Closed runia1 closed 7 years ago
Hi @runia1
There is not yet a 2.0 release for <iron-form>
, follow this PR for more details.
I've tried locally this snippet with <form>
and i correctly receive the submit
events:
<paper-dialog opened>
<h2>Dialog Title</h2>
<form id="form">
<input type="text" name="user">
<input type="submit" value="submit">
</form>
</paper-dialog>
<script>
form.addEventListener('submit', function(e) {
e.preventDefault();
console.log('submitted');
});
</script>
Description
I cannot get 2.0-preview to fire events.
In my class:
the handler never gets fired. Just refreshes the page with the form values in url, like a normal submit. Is there something obvious that I'm doing wrong? It's not
<iron-form>
as I've tried just a normal<form>
listening tosubmit
and that doesn't get fired either. I think it has something to do with the way<paper-dialog>
handles modals but I have no idea.Browsers Affected