-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:adobe/react-spectrum into document_…
…prefix # Conflicts: # packages/@react-aria/menu/src/useMenuItem.ts # packages/@react-aria/selection/src/useSelectableCollection.ts # packages/@react-aria/selection/src/useSelectableItem.ts
- Loading branch information
Showing
75 changed files
with
2,528 additions
and
442 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
.yarn/patches/@testing-library-user-event-npm-14.6.1-5da7e1d4e2.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/dist/cjs/document/prepareDocument.js b/dist/cjs/document/prepareDocument.js | ||
index 39a24b8f2ccdc52739d130480ab18975073616cb..0c3f5199401c15b90230c25a02de364eeef3e297 100644 | ||
--- a/dist/cjs/document/prepareDocument.js | ||
+++ b/dist/cjs/document/prepareDocument.js | ||
@@ -30,7 +30,7 @@ function prepareDocument(document) { | ||
const initialValue = UI.getInitialValue(el); | ||
if (initialValue !== undefined) { | ||
if (el.value !== initialValue) { | ||
- dispatchEvent.dispatchDOMEvent(el, 'change'); | ||
+ el.dispatchEvent(new Event('change')); | ||
} | ||
UI.clearInitialValue(el); | ||
} | ||
diff --git a/dist/cjs/utils/focus/getActiveElement.js b/dist/cjs/utils/focus/getActiveElement.js | ||
index d25f3a8ef67e856e43614559f73012899c0b53d7..4ed9ee45565ed438ee9284d8d3043c0bd50463eb 100644 | ||
--- a/dist/cjs/utils/focus/getActiveElement.js | ||
+++ b/dist/cjs/utils/focus/getActiveElement.js | ||
@@ -6,6 +6,8 @@ function getActiveElement(document) { | ||
const activeElement = document.activeElement; | ||
if (activeElement === null || activeElement === undefined ? undefined : activeElement.shadowRoot) { | ||
return getActiveElement(activeElement.shadowRoot); | ||
+ } else if (activeElement && activeElement.tagName === 'IFRAME') { | ||
+ return getActiveElement(activeElement.contentWindow.document); | ||
} else { | ||
// Browser does not yield disabled elements as document.activeElement - jsdom does | ||
if (isDisabled.isDisabled(activeElement)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.