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
Hi,
Impossible to have a collapsed empty text node: "intro": {hasText:true, asker: x.askLongString, collapsible: yes, collapsed: yes, oneLiner: yes},
Whatever I tried (collapsed, collapsable, collapsoid, oneLiner...), this text node is rendered uncollapsed on opening my XML when the <intro> tag is empty.
Note: yes is a function returning true, which works perfectly well for any other elements (as well as for this element when not empty).
I finally removed the second condition on line 546 and it now displays as expected (see captures attached): if(spec.collapsed(element) && element.children.length>0) classNames+=" collapsed";
I suppose I'll have to deal with side-effects, haven't found any yet.
Thanks for anybody telling me what better solution should have been employed...
The text was updated successfully, but these errors were encountered:
fpierrat
changed the title
Elements with empty textnode
Elements with empty textnode doesn't collapse on xml opening
Apr 26, 2018
Hi,
Impossible to have a collapsed empty text node:
"intro": {hasText:true, asker: x.askLongString, collapsible: yes, collapsed: yes, oneLiner: yes},
Whatever I tried (collapsed, collapsable, collapsoid, oneLiner...), this text node is rendered uncollapsed on opening my XML when the
<intro>
tag is empty.Note:
yes
is a function returningtrue
, which works perfectly well for any other elements (as well as for this element when not empty).I finally removed the second condition on line 546 and it now displays as expected (see captures attached):
if(spec.collapsed(element) && element.children.length>0) classNames+=" collapsed";
I suppose I'll have to deal with side-effects, haven't found any yet.
Thanks for anybody telling me what better solution should have been employed...
The text was updated successfully, but these errors were encountered: