@testing-library/user-event 14.0.3 → 14.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1713,6 +1713,13 @@ function prepareSelectionInterceptor(element) {
1713
1713
  this[UISelection] = void 0;
1714
1714
  return { realArgs: v };
1715
1715
  });
1716
+ prepareInterceptor(element, "select", function interceptorImpl() {
1717
+ this[UISelection] = {
1718
+ anchorOffset: 0,
1719
+ focusOffset: getUIValue(element).length
1720
+ };
1721
+ return { realArgs: [] };
1722
+ });
1716
1723
  }
1717
1724
  function setUISelection(element, {
1718
1725
  focusOffset: focusOffsetParam,
package/dist/index.mjs CHANGED
@@ -1729,6 +1729,13 @@ function prepareSelectionInterceptor(element) {
1729
1729
  this[UISelection] = void 0;
1730
1730
  return { realArgs: v };
1731
1731
  });
1732
+ prepareInterceptor(element, "select", function interceptorImpl() {
1733
+ this[UISelection] = {
1734
+ anchorOffset: 0,
1735
+ focusOffset: getUIValue(element).length
1736
+ };
1737
+ return { realArgs: [] };
1738
+ });
1732
1739
  }
1733
1740
  function setUISelection(element, {
1734
1741
  focusOffset: focusOffsetParam,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testing-library/user-event",
3
- "version": "14.0.3",
3
+ "version": "14.0.4",
4
4
  "description": "Fire events the same way the user does",
5
5
  "keywords": [
6
6
  "react-testing-library",