fix: refs #6897 adjust focus handling for checkbox and toggle components in VnTable
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Pablo Natek 2025-02-14 10:55:18 +01:00
parent 6f2790f6f8
commit 00f23bffd8
1 changed files with 4 additions and 1 deletions

View File

@ -449,8 +449,11 @@ async function renderInput(rowId, field, clickedElement) {
node.appContext = app._context;
render(node, clickedElement);
if (['checkbox', 'toggle', undefined].includes(column?.component))
if (['toggle'].includes(column?.component))
node.el?.querySelector('span > div').focus();
if (['checkbox', undefined].includes(column?.component))
node.el?.querySelector('span > div > div').focus();
}
function destroyInput(rowIndex, field, clickedElement) {