(no title)
andypants | 1 year ago
Normally a form will reload the page anyways so I guess this isn't a normal problem but I was using htmx.
andypants | 1 year ago
Normally a form will reload the page anyways so I guess this isn't a normal problem but I was using htmx.
apsurd|1 year ago
I've been using a dialog form to update an iframe (it's an editor) so it does work as normal the target iframe gets reloaded. It does not close the dialog though.
I can't produce the case where hitting enter closes the dialog. It should be the same as `<button type='submit'>submit</button>` which also does not close the dialog.
FWIW I learned yesterday that a button _can_ close the dialog:
Andrex|1 year ago
preventDefault and stopPropagation?
andypants|1 year ago
There is an event for the dialog about to close from pressing the escape key. No idea why it's only for closing via escape key.
AlienRobot|1 year ago