language-javascript-jsx icon indicating copy to clipboard operation
language-javascript-jsx copied to clipboard

hidden attribute disappears.

Open abologna-r7 opened this issue 8 years ago • 1 comments

Hi,

I found a small bug on the latest version of the package. Whenever you write the hidden attribute on any component, with a value other than a string, i.e. hidden={value}, it automatically hides the attribute on the editor.

<Component hidden={true} />

becomes:

<Component />

It really doesn't matter the value of the hidden attribute, as long as the attribute is 'hidden'.

abologna-r7 avatar Sep 10 '16 15:09 abologna-r7

bug

abologna-r7 avatar Sep 10 '16 15:09 abologna-r7