File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ export function Panel({
168168 return (
169169 < div
170170 { ...rest }
171- aria -disabled= { disabled || undefined }
171+ data -disabled= { disabled || undefined }
172172 data-panel
173173 data-testid = { id }
174174 id = { id }
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export function calculateHitRegions(group: RegisteredGroup) {
5252 if ( childElement . hasAttribute ( "data-panel" ) ) {
5353 currentPanelIndex ++ ;
5454
55- if ( childElement . ariaDisabled === null ) {
55+ if ( ! childElement . hasAttribute ( "data-disabled" ) ) {
5656 numEnabledPanels ++ ;
5757
5858 if ( firstEnabledPanelIndex === - 1 ) {
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ export function mockGroup(
9898 const element = document . createElement ( "div" ) ;
9999 element . setAttribute ( "data-panel" , panelId ) ;
100100 if ( constraints ?. disabled ) {
101- element . setAttribute ( "aria -disabled" , "" ) ;
101+ element . setAttribute ( "data -disabled" , "" ) ;
102102 }
103103
104104 setElementBounds ( element , relativeBoundsToBounds ( relativeBounds ) ) ;
You can’t perform that action at this time.
0 commit comments