You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional notes:
The <select>...</select> was being transformed into a <div>...</div> by jquery on the fly. and perhaps this is causing a singularity.
I suppose, Binding.scala isn't cause of this problem.
If I understand correctly, in some cases dropdown() creates a wrapper and makes an original element a child of this wrapper. Does it return this wrapper? If so, you need return this wrapper from your @dom function instead of an original element too.
Problem:
Some transformations make dom.scala thinks it is inserting the element twice and throws an exception.
The element is here https://gist.github.com/glmars/a597f7c28931a38e2e9b3262279889a9#file-dropdown-initialize-scala-L17
Expected behavior: use the transformed element without a problem.
Exception: https://github.com/ThoughtWorksInc/Binding.scala/blob/v11.3.0/dom/src/main/scala/com/thoughtworks/binding/dom.scala#L106
Exception message is:
"Cannot insert SELECT twice!"
Additional notes:
The
<select>...</select>
was being transformed into a<div>...</div>
by jquery on the fly. and perhaps this is causing a singularity.Here is the code how semantic-ui-dropdown module does the transformation: https://github.com/Semantic-Org/Semantic-UI/blob/master/src/definitions/modules/dropdown.js#L358
The same dropdown with jQuery example works successfully if a div element is used instead, e.g.:
The text was updated successfully, but these errors were encountered: