@react-aria/dnd
Advanced tools
Comparing version
@@ -334,3 +334,4 @@ var $4620ae0dc40f0031$exports = require("./utils.main.js"); | ||
if (!this.initialFocused) { | ||
(0, $hMqHl$reactarialiveannouncer.announce)(item === null || item === void 0 ? void 0 : item.element.getAttribute('aria-label'), 'polite'); | ||
let label = item === null || item === void 0 ? void 0 : item.element.getAttribute('aria-label'); | ||
if (label) (0, $hMqHl$reactarialiveannouncer.announce)(label, 'polite'); | ||
this.initialFocused = true; | ||
@@ -337,0 +338,0 @@ } |
@@ -324,3 +324,4 @@ import {getDragModality as $7252cd45fc48c07c$export$1fb2158d224b542c, getTypes as $7252cd45fc48c07c$export$e1d41611756c6326} from "./utils.module.js"; | ||
if (!this.initialFocused) { | ||
(0, $irqIb$announce)(item === null || item === void 0 ? void 0 : item.element.getAttribute('aria-label'), 'polite'); | ||
let label = item === null || item === void 0 ? void 0 : item.element.getAttribute('aria-label'); | ||
if (label) (0, $irqIb$announce)(label, 'polite'); | ||
this.initialFocused = true; | ||
@@ -327,0 +328,0 @@ } |
{ | ||
"name": "@react-aria/dnd", | ||
"version": "3.0.0-nightly-db51509aa-240910", | ||
"version": "3.0.0-nightly-e60fb427c-240928", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,11 +25,11 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@internationalized/string": "^3.0.0-nightly-db51509aa-240910", | ||
"@react-aria/i18n": "^3.0.0-nightly-db51509aa-240910", | ||
"@react-aria/interactions": "^3.0.0-nightly-db51509aa-240910", | ||
"@react-aria/live-announcer": "^3.0.0-nightly-db51509aa-240910", | ||
"@react-aria/overlays": "^3.0.0-nightly-db51509aa-240910", | ||
"@react-aria/utils": "^3.0.0-nightly-db51509aa-240910", | ||
"@react-stately/dnd": "^3.0.0-nightly-db51509aa-240910", | ||
"@react-types/button": "^3.0.0-nightly-db51509aa-240910", | ||
"@react-types/shared": "^3.0.0-nightly-db51509aa-240910", | ||
"@internationalized/string": "^3.0.0-nightly-e60fb427c-240928", | ||
"@react-aria/i18n": "^3.0.0-nightly-e60fb427c-240928", | ||
"@react-aria/interactions": "^3.0.0-nightly-e60fb427c-240928", | ||
"@react-aria/live-announcer": "^3.0.0-nightly-e60fb427c-240928", | ||
"@react-aria/overlays": "^3.0.0-nightly-e60fb427c-240928", | ||
"@react-aria/utils": "^3.0.0-nightly-e60fb427c-240928", | ||
"@react-stately/dnd": "^3.0.0-nightly-e60fb427c-240928", | ||
"@react-types/button": "^3.0.0-nightly-e60fb427c-240928", | ||
"@react-types/shared": "^3.0.0-nightly-e60fb427c-240928", | ||
"@swc/helpers": "^0.5.0" | ||
@@ -36,0 +36,0 @@ }, |
@@ -495,3 +495,6 @@ /* | ||
if (!this.initialFocused) { | ||
announce(item?.element.getAttribute('aria-label'), 'polite'); | ||
let label = item?.element.getAttribute('aria-label'); | ||
if (label) { | ||
announce(label, 'polite'); | ||
} | ||
this.initialFocused = true; | ||
@@ -498,0 +501,0 @@ } |
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
1704149
0.02%16011
0.04%