Hello,
I believe I have ran into a bug with the following code containing a hint with appearance set to "minimal".
The following code renders an input field with two buttons to add / remove extra input fields respectively.
When you first add a new entry, remove the entry and add it again, you get a client side error with message:
Exception in client-side code.
Message: tooltips[control.id].cfg is undefined
File:
http://localhost:13342/forms/xforms-server/6869c235695d52c931aea75789e14287541d7cf0/orbeon-0dff3e14f341fdf5f7630623be852a77cedf35bf.js Line number: 109
When the appearance="minimal" property is removed from the xf:hint, the code seems to work fine.
Code:
<xhtml:html
xmlns:ev = "
http://www.w3.org/2001/xml-events" xmlns:xf="
http://www.w3.org/2002/xforms" xmlns:xhtml="
http://www.w3.org/1999/xhtml" xmlns:xi="
http://www.w3.org/2001/XInclude"> <xhtml:head>
<xf:model id="default">
<xf:instance>
<test xmlns="">
<entry/>
</test>
</xf:instance>
</xf:model>
</xhtml:head>
<xhtml:body>
<xf:repeat ref="entry">
<xf:input ref=".">
<xf:hint appearance="minimal">test</xf:hint>
</xf:input>
</xf:repeat>
<xf:trigger>
<xf:label>Add</xf:label>
<xf:insert ev:event="DOMActivate" nodeset="entry"/>
</xf:trigger>
<xf:trigger>
<xf:label>Remove</xf:label>
<xf:delete ev:event="DOMActivate" nodeset="entry[last()]"/>
</xf:trigger>
</xhtml:body>
</xhtml:html>