feat: establish composed color field and input group protocols
This commit is contained in:
@@ -72,7 +72,7 @@ export function useTextControl(
|
||||
watch(element, (next) => field?.setControl(next), { flush: "post" });
|
||||
function update(event: Event) {
|
||||
const next = (event.target as HTMLInputElement).value;
|
||||
if (!disabled() && !readOnly()) {
|
||||
if (!event.defaultPrevented && !disabled() && !readOnly()) {
|
||||
internal.value = next;
|
||||
field?.setValue(next);
|
||||
emit("update:modelValue", next);
|
||||
|
||||
Reference in New Issue
Block a user