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
I have verified that I use latest version of all @mantine/* packages
What version of @mantine/* packages do you have in package.json?
7.13.4
What package has an issue?
@mantine/core
What framework do you use?
Vite
In which browsers you can reproduce the issue?
Chrome
Describe the bug
I'm facing an issue when trying to disable focus on the Tabs.Tab buttons by manually setting the tabIndex property to "-1"
The active tab is still rendered with tabindex="0" and others with tabindex="-1".
Here is a minimal code example to reproduce the issue:
If possible, include a link to a codesandbox with a minimal reproduction
No response
Possible fix
exportconstTabsTab=factory<TabsTabFactory>((_props,ref)=>{constprops=useProps('TabsTab',defaultProps,_props);const{//...
tabIndex,// <-- get "tabIndex" given by props
...others}=props;// ...return(<UnstyledButton{...others}// ...// If defined, use the given "tabIndex" propstabIndex={tabIndex !==undefined ? tabIndex : (active||ctx.value===null ? 0 : -1)}// ...>// ... </UnstyledButton>);});
Self-service
I would be willing to implement a fix for this issue
The text was updated successfully, but these errors were encountered:
Dependencies check up
What version of @mantine/* packages do you have in package.json?
7.13.4
What package has an issue?
@mantine/core
What framework do you use?
Vite
In which browsers you can reproduce the issue?
Chrome
Describe the bug
I'm facing an issue when trying to disable focus on the Tabs.Tab buttons by manually setting the tabIndex property to "-1"
The active tab is still rendered with
tabindex="0"
and others withtabindex="-1"
.Here is a minimal code example to reproduce the issue:
If possible, include a link to a codesandbox with a minimal reproduction
No response
Possible fix
Self-service
The text was updated successfully, but these errors were encountered: