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
The HtmlElement.ofNode function is just inherited from Element so it allows you to pass in Elements and get them converted to HtmlElements without any check so it's not really type safe.
So this will set the non existing contentEditable property on plain elements. node->HtmlElement.ofNode->Belt.Option.forEach(HtmlElement.setContentEditable(True))
The text was updated successfully, but these errors were encountered:
oh hmm I forgot we had both ofElement and ofNode. I think we might need to remove ofNode from the inheritance chain; it's only correct for elements not most places Element is included.
Either that or override it in HtmlElement to just use the ofElement implementation which should work for both elements and nodes.
The HtmlElement.ofNode function is just inherited from Element so it allows you to pass in Elements and get them converted to HtmlElements without any check so it's not really type safe.
So this will set the non existing contentEditable property on plain elements.
node->HtmlElement.ofNode->Belt.Option.forEach(HtmlElement.setContentEditable(True))
The text was updated successfully, but these errors were encountered: