[Ur] When testing the new wrapper for the Pikaday datepicker, adding another <textbox> makes the tag <body onload={...}> stop working
Stefan Scott Alexander
stefanscottalexx at gmail.com
Sun Aug 9 18:31:35 EDT 2015
Further testing...
This works - the datepicker *appears*:
<body onload={PikadayControl.init date_nid}>
<form>
<textbox{#DateField} id={date_nid}/><br/>
Name: <textbox{#NameField} />
<submit action={add_thing} value="Add !"/>
</form>
</body>
This doesn't work (after adding a string "Date: " before the Date field) -
the datepicker *doesn't* appear:
<body onload={PikadayControl.init date_nid}>
<form>
Date: <textbox{#DateField} id={date_nid}/><br/>
Name: <textbox{#NameField} />
<submit action={add_thing} value="Add !"/>
</form>
</body>
So it seems that the datepicker appears only when the Date field is the
*first* element inside the <form>.
Thanks for any ideas on why this is happening!
###
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.impredicative.com/pipermail/ur/attachments/20150809/43bdc5fb/attachment.html>
More information about the Ur
mailing list