MLstate/opalang — Issue #45: disabling default onsubmit handler in dynamic form code
Author: Aqua-Ye
Created: 2012-03-01 00:15:32+00:00
State: open

Bug reported by Owen Gunden :

I've noticed that

...

usually works to keep the form from submitting. However, it doesn't
seem to work (i.e. the default submitter runs) in certain cases when
the form is dynamically generated.

I'm not sure if this is a bug, but it manifested as a bug in my code
so I thought I'd bring it up in case somebody else runs into it. I
think I can work around it by being less dynamic.

Here is some code that demos it:

https://github.com/ogunden/opa-prevent-default