adminforth 3.24.3 → 3.24.4
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.
|
@@ -14,7 +14,14 @@
|
|
|
14
14
|
placeholder-lightDropdownButtonsPlaceholderText text-lightDropdownButtonsText text-base sm:text-sm transition duration-150 ease-in-out dark:bg-darkDropdownButtonsBackground dark:border-darkDropdownButtonsBorder dark:placeholder-darkDropdownButtonsPlaceholderText
|
|
15
15
|
dark:text-darkDropdownButtonsText focus:ring-lightPrimary focus:border-lightPrimary dark:focus:ring-darkPrimary dark:focus:border-darkPrimary"
|
|
16
16
|
:class="[{'cursor-pointer': searchDisabled}, classesForInput]"
|
|
17
|
-
|
|
17
|
+
:id="inputId"
|
|
18
|
+
:name="inputId"
|
|
19
|
+
form="afcl-select-detached"
|
|
20
|
+
autocomplete="off"
|
|
21
|
+
data-1p-ignore
|
|
22
|
+
data-lpignore="true"
|
|
23
|
+
data-bwignore
|
|
24
|
+
data-form-type="other"
|
|
18
25
|
:placeholder="
|
|
19
26
|
selectedItems.length && !multiple ? '' : (showDropdown ? $t('Search') : placeholder || $t('Select...'))
|
|
20
27
|
"
|
|
@@ -115,7 +122,7 @@
|
|
|
115
122
|
</template>
|
|
116
123
|
|
|
117
124
|
<script setup lang="ts">
|
|
118
|
-
import { ref, computed, onMounted, onUnmounted, watch, nextTick,type PropType, type Ref } from 'vue';
|
|
125
|
+
import { ref, computed, onMounted, onUnmounted, watch, nextTick, useId,type PropType, type Ref } from 'vue';
|
|
119
126
|
import { IconCaretDownSolid } from '@iconify-prerendered/vue-flowbite';
|
|
120
127
|
import { useElementSize } from '@vueuse/core'
|
|
121
128
|
|
|
@@ -167,6 +174,13 @@ const props = defineProps({
|
|
|
167
174
|
|
|
168
175
|
const emit = defineEmits(['update:modelValue', 'scroll-near-end', 'search']);
|
|
169
176
|
|
|
177
|
+
// Chrome's password manager picks the nearest preceding text input as the "username" field of a form
|
|
178
|
+
// containing <input type="password">, which made an enum Select sitting above a password column get
|
|
179
|
+
// filled with the saved email. form="afcl-select-detached" points at no existing form, which per spec
|
|
180
|
+
// leaves the input with no form owner, so it is no longer part of that password form. The unique
|
|
181
|
+
// id/name additionally stops every Select on the page from sharing one field identity.
|
|
182
|
+
const inputId = `afs-${useId()}`;
|
|
183
|
+
|
|
170
184
|
const search = ref('');
|
|
171
185
|
const showDropdown = ref(false);
|
|
172
186
|
const inputEl = ref<HTMLElement | null>(null);
|
|
@@ -142,8 +142,11 @@
|
|
|
142
142
|
:suffix="column.inputSuffix"
|
|
143
143
|
:modelValue="value"
|
|
144
144
|
@update:modelValue="$emit('update:modelValue', $event)"
|
|
145
|
-
autocomplete="
|
|
145
|
+
:autocomplete="column.masked ? 'new-password' : 'off'"
|
|
146
|
+
data-1p-ignore
|
|
146
147
|
data-lpignore="true"
|
|
148
|
+
data-bwignore
|
|
149
|
+
data-form-type="other"
|
|
147
150
|
:readonly="(column.editReadonly && source === 'edit') || readonly"
|
|
148
151
|
@focus="onFocusHandler($event, column, source)"
|
|
149
152
|
/>
|