From fd22b79d42ba52af847107cf1b55812c82a598bb Mon Sep 17 00:00:00 2001 From: James Collins Date: Mon, 8 May 2023 16:39:27 +1000 Subject: [PATCH] dynamic disabling --- resources/js/components/SMInput.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/resources/js/components/SMInput.vue b/resources/js/components/SMInput.vue index aaec634..c73dfc4 100644 --- a/resources/js/components/SMInput.vue +++ b/resources/js/components/SMInput.vue @@ -338,6 +338,13 @@ watch( } ); +watch( + () => props.disabled, + (newValue) => { + disabled.value = newValue; + } +); + if (typeof control === "object" && control !== null) { watch( () => control.validation.result.valid,