@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 +7 -0
- package/dist/index.mjs +7 -0
- package/package.json +1 -1
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,
|