Actions : disabled() and hidden() are the same
If i do hidden(true) the result is the same as disabled() .
The button is there but not clickable.
Is this the wanted behavior ? I thought hidden meant not visible ?
Have a good day ! 🚀
7 Replies
bumping this thread
Bumping this as I encounter this
hmm this is the 3rd post with this and I can reproduce it too. The
hidden
seems to work if it's in an action group, but not when it's by itself. This is weird
Ok so I had a look at the code and, unless I'm missing something, the isHidden()
method is not used anywhere. You probably have to do it manually like this
I tried doing it using a conditional in my blade file, and I didn't have any luck in my specific situation.
Is this a bug?
I do think it’s weird though. Using hidden. IMHO should keep it from rendering, since most people aren’t using actions in rendered livewire views.
In my use case, I have a "submit" button and a "reopen" button. I was hoping to have the submit button visible when the form hadn't been submitted, and the re-open button visible when it had. Regardless of using hidden/visible attributes, it still just disables/enables. That seems like the wrong behavior. I posted about it here:https://discord.com/channels/883083792112300104/1201257018577649664