Merge pull request 'fix: refs #6897 adjust focus handling for checkbox and toggle components in VnTable' (!1396) from 6897-fixTabFromCheckbox into dev
gitea/salix-front/pipeline/head This commit looks good
Details
gitea/salix-front/pipeline/head This commit looks good
Details
Reviewed-on: #1396 Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
This commit is contained in:
commit
4e1d7b9c4f
|
@ -449,8 +449,11 @@ async function renderInput(rowId, field, clickedElement) {
|
||||||
node.appContext = app._context;
|
node.appContext = app._context;
|
||||||
render(node, clickedElement);
|
render(node, clickedElement);
|
||||||
|
|
||||||
if (['checkbox', 'toggle', undefined].includes(column?.component))
|
if (['toggle'].includes(column?.component))
|
||||||
node.el?.querySelector('span > div').focus();
|
node.el?.querySelector('span > div').focus();
|
||||||
|
|
||||||
|
if (['checkbox', undefined].includes(column?.component))
|
||||||
|
node.el?.querySelector('span > div > div').focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
function destroyInput(rowIndex, field, clickedElement) {
|
function destroyInput(rowIndex, field, clickedElement) {
|
||||||
|
|
Loading…
Reference in New Issue