+
{
+ if (local.disabled || event.button !== 0) return
+ // Keep focus on the input without using a native
@@ -67,6 +77,11 @@ export function InlineInputV2(props: InlineInputV2Props) {
{
+ input = el
+ const ref = inputProps.ref
+ if (typeof ref === "function") ref(el)
+ }}
type={inputProps.type ?? "text"}
disabled={local.disabled}
aria-invalid={local.invalid ? true : undefined}
diff --git a/packages/ui/src/v2/components/text-input-v2.css b/packages/ui/src/v2/components/text-input-v2.css
index 3da53c3cca..e2084cb291 100644
--- a/packages/ui/src/v2/components/text-input-v2.css
+++ b/packages/ui/src/v2/components/text-input-v2.css
@@ -98,6 +98,7 @@
[data-component="text-input-v2"] [data-slot="text-input-v2-input"]::placeholder {
color: var(--v2-text-text-faint);
+ user-select: none;
}
[data-component="text-input-v2"] [data-slot="text-input-v2-input"][type="search"]::-webkit-search-cancel-button {