@react-aria/virtualizer
Advanced tools
Comparing version 3.3.1-nightly.2445 to 3.3.1-nightly.2448
@@ -508,6 +508,16 @@ var { | ||
} | ||
}); | ||
}); // Set tabIndex to -1 if the focused view is in the DOM, otherwise 0 so that the collection | ||
// itself is tabbable. When the collection receives focus, we scroll the focused item back into | ||
// view, which will allow it to be properly focused. If using virtual focus, don't set a | ||
// tabIndex at all so that VoiceOver on iOS 14 doesn't try to move real DOM focus to the element anyway. | ||
let tabIndex; | ||
if (!shouldUseVirtualFocus) { | ||
tabIndex = focusedView ? -1 : 0; | ||
} | ||
return { | ||
virtualizerProps: { | ||
tabIndex: focusedView || shouldUseVirtualFocus ? -1 : 0, | ||
tabIndex, | ||
onFocus, | ||
@@ -514,0 +524,0 @@ onBlur |
@@ -458,6 +458,16 @@ import { useLocale } from "@react-aria/i18n"; | ||
} | ||
}); | ||
}); // Set tabIndex to -1 if the focused view is in the DOM, otherwise 0 so that the collection | ||
// itself is tabbable. When the collection receives focus, we scroll the focused item back into | ||
// view, which will allow it to be properly focused. If using virtual focus, don't set a | ||
// tabIndex at all so that VoiceOver on iOS 14 doesn't try to move real DOM focus to the element anyway. | ||
let tabIndex; | ||
if (!shouldUseVirtualFocus) { | ||
tabIndex = focusedView ? -1 : 0; | ||
} | ||
return { | ||
virtualizerProps: { | ||
tabIndex: focusedView || shouldUseVirtualFocus ? -1 : 0, | ||
tabIndex, | ||
onFocus, | ||
@@ -464,0 +474,0 @@ onBlur |
{ | ||
"name": "@react-aria/virtualizer", | ||
"version": "3.3.1-nightly.2445+df4650ba", | ||
"version": "3.3.1-nightly.2448+28ceccbf", | ||
"description": "Spectrum UI components in React", | ||
@@ -21,6 +21,6 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"@react-aria/i18n": "3.0.0-nightly.767+df4650ba", | ||
"@react-aria/utils": "3.0.0-nightly.767+df4650ba", | ||
"@react-stately/virtualizer": "3.1.3-nightly.2445+df4650ba", | ||
"@react-types/shared": "3.0.0-nightly.767+df4650ba" | ||
"@react-aria/i18n": "3.0.0-nightly.770+28ceccbf", | ||
"@react-aria/utils": "3.0.0-nightly.770+28ceccbf", | ||
"@react-stately/virtualizer": "3.1.3-nightly.2448+28ceccbf", | ||
"@react-types/shared": "3.0.0-nightly.770+28ceccbf" | ||
}, | ||
@@ -34,3 +34,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "df4650ba218034780d86a0ce0459bbe7f88cc1ce" | ||
"gitHead": "28ceccbf05637e9fb256794a16c0152e52be179e" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
143273
1484