-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Closed
Closed
Copy link
Description
Which @angular/* package(s) are the source of the bug?
forms
Is this a regression?
No
Description
When a formsModule is loaded, the folowing code no longer conforms to the W3C specs.
<dialog #dlg (close)="handleClose($event)">
<form method="dialog" name="myForm">
<label>
<span>Last:</span>
<input type="text" name="name.last" />
</label>
<button value="reset">Cancel</button>
<button value="submit">Confirm</button>
</form>
</dialog>Clicking the submit button should close the dialog and raise an event. You can see this working in the attached StackBlitz.
The App-component works, while the forms-component doesn't fire the event.
Please provide a link to a minimal reproduction of the bug
Please provide the exception or error you saw
The dialog doesn't close, and the corresponding event is not fired.
Please provide the environment you discovered this bug in (run ng version)
All angular versions. In the StackBlitz is version 14.1.2
Anything else?
cc @twerske You asked me to tag you here
Reactions are currently unavailable