-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Automatic Backup: The copy/paste icon in "Save current encryption key" doesn't work! #23414
Comments
Weird, I can not seem to reproduce this... Do other copy buttons work for you? The new encryption key for example? Or copy button of the entity id in entity settings? |
Still in version 2025.1.0b1, copy/paste OK with "entityID" but "change encryption key" not! |
There's a possible fix in 2025.1.0b2. |
Core 2025.1.0b2: Still no copy with the button (the confirmation message is there!), selecting the new key works and copy/paste with Ctrl+c/Ctrl+v is OK. |
Have you enabled the right permissions for the page? AFAIK you can disable/enable those permissions. Maybe it only works via HTTPS but haven't tested that. |
What permission? I can copy and paste (the encryption key for example). I can also copy/paste an entity ID button and I'm not using HTTPS. Firefox or Google Chrome, same battle. |
I can also report it's not working for me. Every other "Copy to Clipboard" button in the frontend seems to work except this one. My windows clipboard is not modified when I press the button. Maybe something about how it's being used within a dialog makes it different? |
I will guess that el.select() can't select the element because the dialog is preventing selecting something behind the dialog? Note that if I highlight some other text in the dialog, and hit the copy button, that highlighted text is copied instead of the key. That suggests that the desired element is actually not being selected. Not sure why it works for some people. |
The dialog prevents cancellation, so it will prevent selecting anything outside including the textarea created when navigator.clipboard doesn't work. |
Still in version 2025.1.0b3, copy/paste OK with "entityID" but "change encryption key" not! |
This issue is still unresolved as long as it is open. Good thing is that the cause is known. |
It will work in a secure context as it then uses the |
Checklist
Describe the issue you are experiencing
The copy icon in Save current encryption key doesn't work! Nothing to paste!
Describe the behavior you expected
The copy icon in Save current encryption key works!
Steps to reproduce the issue
...
What version of Home Assistant Core has the issue?
core 2025.1.0b0
What was the last working version of Home Assistant Core?
No response
In which browser are you experiencing the issue with?
Chrome est à jour Version 131.0.6778.205 (Build officiel) (64 bits)
Which operating system are you using to run this browser?
Windows 11 23H2
State of relevant entities
No response
Problem-relevant frontend configuration
No response
Javascript errors shown in your browser console/inspector
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: