Currently working on the Front-end libraries project and I’ve run across a sort of problem I need some help with. See I’m writing/running my code on codepen and there’s this particular snippet of code that seems to get modified automatically:
This is what I type in:
<div id="editor-toolbar" style={etoolbar} className="toolbar"> <p
className="title">Editor</p>
<div className="toolbar-actions">
<button className="toolbar-min-max">
<i className="far fa-window-maximize"></i>
</button>
<button className="toolbar-min-max">
<i className="fas fa-window-maximize"></i>
</button>
</div>
</div>
But this is what I see on my devTools. Notice the additional span element.
<div id="editor-toolbar" style="background:#eddcd2;flex:1;border-top-left-radius:2%;border-top-right-radius:2%;" class="toolbar" data-reactid=".0.0.0.0">
<span data-reactid=".0.0.0.0.0"></span>
<p class="title" data-reactid=".0.0.0.0.1">Editor</p>
<div class="toolbar-actions" data-reactid=".0.0.0.0.2">
<button class="toolbar-min-max" data-reactid=".0.0.0.0.2.0">
<i class="far fa-window-maximize" data-reactid=".0.0.0.0.2.0.0" aria-hidden="true"></i>
</button>
<button class="toolbar-min-max" data-reactid=".0.0.0.0.2.1">
<i class="fas fa-window-maximize" data-reactid=".0.0.0.0.2.1.0" aria-hidden="true"></i>
</button>
</div>
</div>
Now normally, this probably wouldn’t bother me, but since I’m styling my toolbar div with flexbox, then the extra span element also counts as a flex item when applying the ‘justify-content’ property.
Any help will be appreciated.