-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include specific external elements #12
Comments
Maybe we could add such additions in the "result" array in jquery-trap-input/jquery.trap.js Line 121 in 1f1c275
How would you see the API ? Something like: $(".trap").trap({ except: jQueryObject });
$(".trap").trap({ except: [ object1, object2, ... ] }); // "object1" is either a jQ object or plain DOM TBH I don't work with jQuery for several years now :) |
That sounds like it'd work well to me. Unrelated, but I'm trying to move away from jQuery as well, but finding it difficult to transition to native JS. Do you have any tips on how to get started? I feel like I'm somewhat profeciant in jQuery but native JS seems completely different 😰 |
I looked quickly and I found https://gomakethings.com/ditching-jquery/ which seems quite comprehensive :) |
Thanks much, will check it out! |
This works great, except that there's no way for my users to toggle the "close dialog" button, as it's a global overlay not within the same menu. I'll see if I can change my code to make it work as I need it to, but it'd be awesome to say "trap within this div, except also include this one"
The text was updated successfully, but these errors were encountered: