Skip to content
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

how to close the overhang programmatically (in JS) #34

Open
bfalchuk opened this issue Dec 12, 2023 · 0 comments
Open

how to close the overhang programmatically (in JS) #34

bfalchuk opened this issue Dec 12, 2023 · 0 comments

Comments

@bfalchuk
Copy link

bfalchuk commented Dec 12, 2023

Hi folks, how would I use jquery to programmatically close an overhang that is already open by clicking anywhere on the overhang itslef. I'm doing the below ( 1. finding the overhang by its class, and 2. creating a click event on overhang's close button), and while its working I suspect its a poor method since its throwing some jquery errors and its not very elegant.

$('.overhang-overrides').on('click', function(event){ $('.overhang-close').trigger('click'); });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant