subtleGradient / language-javascript-jsx

JavaScript with JSX Bundle for Atom
45 stars 6 forks source link

hidden attribute disappears. #30

Open abologna-r7 opened 8 years ago

abologna-r7 commented 8 years ago

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 commented 8 years ago

bug