Open kalile opened 9 years ago
Hi, thanks for the report ! Do you happen to have a testcase somewhere ?
looks like there's an old PR open for that: https://github.com/julienw/jquery-trap-input/pull/5
Thanks for the reminder, looks like I'm late handling all this.
I'll try to look at it tomorrow, but otherwise this will have to wait one more week as I'm leaving for holidays.
Nice Folks! About the fix, I would avoid the first loop, and just return in a previous check. But that solves the issue as well! :)
Replace while(elt === elt.ownerDocument.activeElement) with while(elt === elt.ownerDocument.activeElement && curElt)
It works
Thanks !
It doesn`t leave the loop in processTab if there is only one focusable item in the dialog. The solution would be very simple.