#7124 - First Input Autofocus without property #251
|
@ -4,9 +4,7 @@ export default {
|
|||
mounted: function () {
|
||||
const vm = getCurrentInstance();
|
||||
if (vm.type.name === 'QForm')
|
||||
if (!['searchbarForm'].includes(this.$el?.id)) {
|
||||
let that = this;
|
||||
|
||||
if (!['searchbarForm','filterPanelForm'].includes(this.$el?.id)) {
|
||||
// AUTOFOCUS
|
||||
const elementsArray = Array.from(this.$el.elements);
|
||||
const firstInputElement = elementsArray.find(element => element.classList.contains('q-field__native'));
|
||||
jsegarra marked this conversation as resolved
Outdated
|
||||
|
|
|
@ -164,7 +164,7 @@ function formatValue(value) {
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<QForm @submit="search">
|
||||
<QForm @submit="search" id="filterPanelForm">
|
||||
<QList dense>
|
||||
<QItem class="q-mt-xs">
|
||||
<QItemSection top>
|
||||
|
|
Loading…
Reference in New Issue
Justo he probado en claimBasicData (ejemplo: http://localhost:9000/#/claim/1/basic-data) y es curioso pq no funciona. Dado que el primer elemento si es un input pero esta disabled. Igual se podría añadir que comprobase que no tenga la clase
.disabled
Si, es una posibilidad que había visto pero no contemplado.
Lo tengo en cuenta para mas cambios
me parece muy interesante que obvie los disables