@wistia/ui 0.15.11-beta.f489c1c2.ebd328f → 0.15.11

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.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.15.11-beta.f489c1c2.ebd328f
3
+ * @license @wistia/ui v0.15.11
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -14094,7 +14094,8 @@ var EditableHeading = ({
14094
14094
  onBlur: handleFinishEditing,
14095
14095
  onChange: (event) => setValue(event.target.value),
14096
14096
  onFocus: (event) => {
14097
- event.currentTarget.select();
14097
+ const { length } = event.currentTarget.value;
14098
+ event.currentTarget.setSelectionRange(length, length);
14098
14099
  },
14099
14100
  onKeyDown: handleKeyDown,
14100
14101
  type: "multiline",
@@ -14337,9 +14338,9 @@ var EditableTextDisplay = makePolymorphic(
14337
14338
  );
14338
14339
 
14339
14340
  // src/components/EditableText/EditableTextInput.tsx
14340
- import { isNotNil as isNotNil27 } from "@wistia/type-guards";
14341
14341
  import { useContext as useContext7, useEffect as useEffect17, useRef as useRef18 } from "react";
14342
14342
  import styled65 from "styled-components";
14343
+ import { isNotNil as isNotNil27 } from "@wistia/type-guards";
14343
14344
  import { jsx as jsx279 } from "react/jsx-runtime";
14344
14345
  var StyledInput2 = styled65(Input)`
14345
14346
  && {
@@ -14440,9 +14441,6 @@ var EditableTextInput = (props) => {
14440
14441
  id,
14441
14442
  onBlur: handleBlur2,
14442
14443
  onChange: handleChange,
14443
- onFocus: (event) => {
14444
- event.currentTarget.select();
14445
- },
14446
14444
  onKeyDown: handleKeyDown,
14447
14445
  placeholder,
14448
14446
  type: "multiline",