tua-body-scroll-lock icon indicating copy to clipboard operation
tua-body-scroll-lock copied to clipboard

Use one state for multiple instances

Open deevanych opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe. I wrote a plugin (needed at work) that I embed on websites. This plugin uses BSL. And the sites that use this plugin also use BSL. The problem is that inside the plugin, the lock/unlock functions use their lockedElements, lockedNum and the same on the site. That is, if you close all the windows in the plugin, but there are open ones on the site, the plugin will execute unLockCallback() because it does not know that there are open popups on the site.

Describe the solution you'd like Use window.bsl object for statement. In this case all instances BSL will has access to lockedElements and lockedNum.

Describe alternatives you've considered // empty

Additional context // empty

deevanych avatar Jan 30 '24 14:01 deevanych

It's a good idea~

BuptStEve avatar Feb 22 '24 07:02 BuptStEve

It's a good idea~

Can I do it myself?

deevanych avatar Feb 22 '24 08:02 deevanych

It's a good idea~

Can I do it myself?

PR welcome

BuptStEve avatar Feb 22 '24 10:02 BuptStEve

@evinma When will this be available? There has not been a release with this functionality yet

deevanych avatar Mar 26 '24 11:03 deevanych

@deevanych done~

BuptStEve avatar Mar 29 '24 06:03 BuptStEve