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
Components can't be hidden with the hidden property because when the value changes to false, the attribute isn't removed but hidden="false" attribute gets added instead and the component stays hidden.
Steps to reproduce:
Create a new Hilla React project with npx @hilla/cli init --react my-hilla-app
In HelloReactView.tsx, add hidden={!name} to the <Button>
Type into the field -> the button stays hidden
As a workaround, you need to wrap the component inside another element and add the hidden={!name} to it instead.
The text was updated successfully, but these errors were encountered:
Components can't be hidden with the
hidden
property because when the value changes tofalse
, the attribute isn't removed buthidden="false"
attribute gets added instead and the component stays hidden.Steps to reproduce:
npx @hilla/cli init --react my-hilla-app
HelloReactView.tsx
, addhidden={!name}
to the<Button>
As a workaround, you need to wrap the component inside another element and add the
hidden={!name}
to it instead.The text was updated successfully, but these errors were encountered: