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

Disable mouse click out off popup area #185

Closed
elik745i opened this issue Feb 4, 2021 · 10 comments
Closed

Disable mouse click out off popup area #185

elik745i opened this issue Feb 4, 2021 · 10 comments

Comments

@elik745i
Copy link

elik745i commented Feb 4, 2021

Would be good to add disable mouse click outside off popup area. I have integrated alarm_panel into popup - works great! but the problem is I want for this card to disable mouse clicks outside of popup area till correct pin is entered or alarm is still armed.

@KTibow
Copy link
Contributor

KTibow commented Feb 4, 2021

I don't understand your use case. What's the problem with closing the popup?

@elik745i
Copy link
Author

elik745i commented Feb 4, 2021

I do not want user to be able to close popup if security system is armed, otherwise he has access to the rest of HA and can disable security system by removing card or executing disable security automation. I want popup to be closed only if security is not armed or correct pin is entered which is the same. I'm controlling HA through tablet on the wall.
If closing popup can be automated and clicking outside off popup area can be disabled, that will do.
thanks

@KTibow
Copy link
Contributor

KTibow commented Feb 4, 2021

and can disable security system by removing card

That's not how security systems in HA work. They might not be controllable via the card, but they're still there.

or executing disable security automation

They can only execute automations if you add them to your UI.

I'm controlling HA through tablet on the wall.

Make sure the user that the tablet is signed into isn't admin.

@elik745i
Copy link
Author

elik745i commented Feb 4, 2021

How to disable mouse click outside off popup? I'm sure it is easy to do. There is still option to show or hide close button. I do not understant if there is option to show or hide close button why popup can be closed by simply clicking outside off it?
Can that instance be automated? i.e. to show or hide close button? Popup itself can be closed via automation.

@KTibow
Copy link
Contributor

KTibow commented Feb 5, 2021

I do really not get what you're trying to say. Could you restate more concisely?

@elik745i
Copy link
Author

elik745i commented Feb 5, 2021

I do really not get what you're trying to say. Could you restate more concisely?
Excuse my bad English, Option: hide_header: - what is it for if popup window can be closed simply by clicking around?
Hope you understand now.

@elik745i
Copy link
Author

elik745i commented Feb 5, 2021

Oh i think that behavior is not related to browser_mod but HA, browser_mod is just calls standard HA behavior (from looking at your code...)

@KTibow
Copy link
Contributor

KTibow commented Feb 6, 2021

Did you even read #185 (comment)?

@ghost
Copy link

ghost commented Feb 15, 2021

must be a way to do this.. a modal popup like in bootstrap

seems that HA did once have a way (was a bug I think)
https://community.home-assistant.io/t/wth-cant-i-click-outside-of-a-dialog-to-close-the-dialog/222756

must be something with ha-dialog html element types

would be good to have browser_mod integrate a modal type that has to have a button in the popup or behind code able to close it

@thomasloven
Copy link
Owner

Closed because of Browser Mod 2.0 release.
Please see #354.

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

No branches or pull requests

3 participants