-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
[habpanel] Sliders in modals disappear, then appear again later #218
Comments
As a workaround I'm using this: Template:
lights.js:
Dummy.items: Widget template: This is obviously a horrible and very hacky workaround, but at least I can dim my lights for now. |
Thank you for investigating; it's true that openhab-update doesn't necessarily refresh now. openhab-webui/bundles/org.openhab.ui.habpanel/web/app/widgets/template/template.widget.js Lines 114 to 119 in 611be5d
Can you do a PR? |
I'd like to try if this works. How can I modify my local installation to test this before I do a PR? Unfortunately I haven't come to setting up an OH build environment (yet). |
Great post, thanks! For the official modal, adding |
On a side note, my originally intended use case was a bit different. I'm using a custom popup instead of the official modal:
There implementing this helped (see onclick event where the popup is shown):
|
If you're positive then we can probably add this to the |
I think |
#218) (#236) Fixes #218. Signed-off-by: Eiko Wagenknecht <[email protected]>
Mostly a follow-up to openhab/org.openhab.ui.habpanel#244 and may also be connected to openhab/org.openhab.ui.habpanel#353. But since the repo seems to have moved I'm opening a new issue here.
How to reproduce:
Create a custom widget with @ghys demo code from: https://community.openhab.org/t/habpanel-development-advanced-features-start-here/30755
Click the button.
Expected: Slider appears and stays there.
What happens: Slider appears for some milliseconds, then disappears and after quite some time (varies from seconds to minutes). The reappearing seems to happen the instant any event (of some unrelated item) is fired.
The text was updated successfully, but these errors were encountered: