overhang.js icon indicating copy to clipboard operation
overhang.js copied to clipboard

how to close the overhang programmatically (in JS)

Open bfalchuk opened this issue 1 year ago • 0 comments

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'); });

bfalchuk avatar Dec 12 '23 20:12 bfalchuk