dsuryd/dotNetify-Elements

Show attribute on texfields doesn't work as expected

jersiovic opened this issue · 4 comments

This textfield is not hidden when it should be hidden. However buttons that use same function to set the show attribute works properly.
image
If I change it per a button then the button is hidden properly
image

The show attribute is only supported by Button at least in the current version. I have reservation to include it in other elements, because the conditional React syntax has better rendering efficiency:

<Panel>
   {!edit()  && <Button label="Go to" />}
 </Panel>

thank you

to make things more predecible, why don't you remove it also from buttons?

Good point. I will consider it. Thanks!