On Jan 11, 2012, at 11:49 AM, Bob Sleys wrote: > Ok I guess I'm being confusing and I sorry for that. Let me try it a > different way. > > If I have the following dryml > > <extend tag="form" for="LocationMaterial"> > <old-form merge> > <field-list: fields="material, condition, potential, friable, > percent_damage, accessible, quantity, unit, notes"> > <material-view:> > <dialog-box id="hello-dialog"> > Hello! > </dialog-box> > <dialog-open-button dialog="#hello-dialog"> > Press Me! > </dialog-open-button> > </material-view:> > </field-list:> > </old-form> > </extend> > > When I click the Press Me! button to display the hello-dialog the dialog > popups up but the form is also submitted as if I had clicked the save button > at the bottom of the form. Pressing the button should only display the popup > not submit the form.
Hmmm - at first glance, this sounds like something isn't stopping the button's click event from propagating up to the surrounding form. There may be a missing preventDefault call in the event handler... --Matt Jones -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
