Преглед на файлове

fix ID attribute of <input> element

Falko Schindler преди 5 месеца
родител
ревизия
965be6f519
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      nicegui/elements/input.js

+ 1 - 0
nicegui/elements/input.js

@@ -7,6 +7,7 @@ export default {
       :shadow-text="shadowText"
       @keydown.tab="perform_autocomplete"
       :list="id + '-datalist'"
+      :for="id"
     >
       <template v-for="(_, slot) in $slots" v-slot:[slot]="slotProps">
         <slot :name="slot" v-bind="slotProps || {}" />