Merge pull request #2583 from maxueljunior/master

fixed when FormField start with Visible equals false
This commit is contained in:
Vladimir Enchev
2026-06-25 08:48:07 +03:00
committed by GitHub

View File

@@ -6260,7 +6260,7 @@ Radzen.scrollElementTo = (scrollable, left, top) => {
scrollable.scrollTo({ top: top, left: left });
};
Radzen.createFormField = function(el) {
if (!el) return null;
if (!el || typeof el.addEventListener !== 'function') return null;
function onFocusIn() { el.classList.add('rz-state-focused'); }
function onFocusOut() { el.classList.remove('rz-state-focused'); }
el.addEventListener('focusin', onFocusIn);