@testing-library/user-event 14.0.2 → 14.0.3
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2400,7 +2400,6 @@ function mousedownDefaultBehavior({
|
|
|
2400
2400
|
node,
|
|
2401
2401
|
offset
|
|
2402
2402
|
}) {
|
|
2403
|
-
focus(target);
|
|
2404
2403
|
if (!targetIsDisabled) {
|
|
2405
2404
|
const hasValue = isElementType(target, ["input", "textarea"]);
|
|
2406
2405
|
const text = String(hasValue ? getUIValue(target) : target.textContent);
|
|
@@ -2435,6 +2434,7 @@ function mousedownDefaultBehavior({
|
|
|
2435
2434
|
selection.addRange(range.cloneRange());
|
|
2436
2435
|
}
|
|
2437
2436
|
}
|
|
2437
|
+
focus(target);
|
|
2438
2438
|
}
|
|
2439
2439
|
function getTextRange(text, pos, clickCount) {
|
|
2440
2440
|
if (clickCount % 3 === 1 || text.length === 0) {
|
package/dist/index.mjs
CHANGED
|
@@ -2434,7 +2434,6 @@ function mousedownDefaultBehavior({
|
|
|
2434
2434
|
node,
|
|
2435
2435
|
offset
|
|
2436
2436
|
}) {
|
|
2437
|
-
focus(target);
|
|
2438
2437
|
if (!targetIsDisabled) {
|
|
2439
2438
|
const hasValue = isElementType(target, ["input", "textarea"]);
|
|
2440
2439
|
const text = String(hasValue ? getUIValue(target) : target.textContent);
|
|
@@ -2469,6 +2468,7 @@ function mousedownDefaultBehavior({
|
|
|
2469
2468
|
selection.addRange(range.cloneRange());
|
|
2470
2469
|
}
|
|
2471
2470
|
}
|
|
2471
|
+
focus(target);
|
|
2472
2472
|
}
|
|
2473
2473
|
function getTextRange(text, pos, clickCount) {
|
|
2474
2474
|
if (clickCount % 3 === 1 || text.length === 0) {
|