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
When trying to provide the disabled attribute for the Link component of inertia, it is completely ignored.
I believe the link should not work if disabled is true.
Steps to reproduce:
Just import the Link from '@inertiajs/react', and try setting a disabled prop.
See the link still working normally when it should be blocked.
The text was updated successfully, but these errors were encountered:
…friendly.
The next and previous button are not disabled when reaching the last or first page, this is an expected bug, until inertia solves it. (inertiajs/inertia#1620)
Hey! So under the hood Inertia just uses regular <a> tags for links, which don't support disabled. You can make the Inertia <Link> a button using the as prop, in which case you can use disabled, since that's supported by the native <button> element:
Version:
@inertiajs/react
version:^1.0.9
Describe the problem:
When trying to provide the
disabled
attribute for the Link component of inertia, it is completely ignored.I believe the link should not work if
disabled
istrue
.Steps to reproduce:
Just import the
Link
from'@inertiajs/react'
, and try setting adisabled
prop.See the link still working normally when it should be blocked.
The text was updated successfully, but these errors were encountered: