= 640 && !('ontouchstart' in window)) && canDismissModal($event)) { mobileFilterOpen = false; }"
@keydown.escape.window="
const active = document.activeElement;
const isInput = active && ['INPUT', 'TEXTAREA', 'SELECT'].includes(active.tagName);
if (isInput) {
$event.preventDefault();
$event.stopPropagation();
active.blur();
} else if (canDismissModal($event) && !document.querySelector('.select2-container--open') && !document.querySelector('.swal2-container')) {
mobileFilterOpen = false;
}
"
x-init="
const focusFirst = () => {
if (window.innerWidth >= 640 && !('ontouchstart' in window)) {
$nextTick(() => { const el = $el.querySelector('input:not([type=hidden]):not([disabled]), select, textarea'); if (el) el.focus(); });
}
};
if (mobileFilterOpen) focusFirst();
$watch('mobileFilterOpen', val => {
if (val) {
focusFirst();
} else {
setTimeout(() => { if (!mobileFilterOpen) $el.style.display = 'none'; }, 180);
}
});
">
= 640) && canDismissModal($event)) { mobileFilterOpen = false; }"
>
خيارات البحث في الدورات التدريبية
تحديد التصنيف والمحاضر والبحث في البرامج المتاحة.
نوع المسار الدراسي