diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-10-17 11:41:35 +0200 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-10-17 11:41:35 +0200 |
| commit | 3aaf1725936d2444e3a11dd6c0f07692522334a3 (patch) | |
| tree | fbbe6302cc92eb692486e8ec7ca227ad3e480675 /resources | |
| parent | 3a034a69c93073ecf577bea3899e43f65d452263 (diff) | |
fix bogus condition for v-autofocus, fixes #5962
Closes #5962
Merge request studip/studip!4560
Diffstat (limited to 'resources')
| -rw-r--r-- | resources/vue/directives/autofocus.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/vue/directives/autofocus.ts b/resources/vue/directives/autofocus.ts index 69803ec..5995629 100644 --- a/resources/vue/directives/autofocus.ts +++ b/resources/vue/directives/autofocus.ts @@ -3,7 +3,7 @@ import {DirectiveBinding} from "vue"; function focusElement(el: HTMLElement, binding: DirectiveBinding) : void { - if (binding.value && !binding.value) { + if (binding.value !== undefined && !binding.value) { return; } |
