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
There is a render issue(might be related with hyperscript) when you want to give style attribute with variable; <div class="competency-level" style="width: ${this.state.percentage};" title="Percentage"></div>
In this case, width is not rendered inside the style attribute.
However, when you give the style with an object; <div class="competency-level" style="${{ width: this.state.percentage + '%' }};" title="Percentage"></div>
the problem is gone.
The text was updated successfully, but these errors were encountered:
This is a duplicate of #58. We'll need to decide if this is something we want to support since, as you noted, there is a workaround and the current state is aligned with JSX.
There is a render issue(might be related with hyperscript) when you want to give style attribute with variable;
<div class="competency-level" style="width: ${this.state.percentage};" title="Percentage"></div>
In this case, width is not rendered inside the style attribute.
However, when you give the style with an object;
<div class="competency-level" style="${{ width: this.state.percentage + '%' }};" title="Percentage"></div>
the problem is gone.
The text was updated successfully, but these errors were encountered: