-
Notifications
You must be signed in to change notification settings - Fork 354
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
Fixes autofocus on password field when Ledger Live Desktop is password protected #537
Fixes autofocus on password field when Ledger Live Desktop is password protected #537
Conversation
🦋 Changeset detectedLatest commit: a59590b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@tomav is attempting to deploy a commit to the LedgerHQ Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov Report
@@ Coverage Diff @@
## develop #537 +/- ##
========================================
Coverage 47.44% 47.44%
========================================
Files 620 620
Lines 27752 27752
Branches 7130 7130
========================================
Hits 13166 13166
Misses 13462 13462
Partials 1124 1124
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
We could use a ref to make this more resilient to changes in the codebase instead of relying on an id: https://reactjs.org/docs/refs-and-the-dom.html#refs-and-function-components Example for a functional component: function CustomTextInput(props) {
// textInput must be declared here so the ref can refer to it
const textInput = useRef(null);
function handleClick() {
textInput.current.focus();
}
return (
<div>
<input
type="text"
ref={textInput} />
<input
type="button"
value="Focus the text input"
onClick={handleClick}
/>
</div>
);
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
added a changelog |
Hi @tomav, Could you have a look on the conflicted files and resolve it ? In this case apps/ledger-live-desktop/src/renderer/components/IsUnlocked.js |
📝 Description
Fixes autofocus on password field when Ledger Live Desktop is password protected.
The code to do this exists, but is target ID
lockscreen-password-input
is missing in the view.❓ Context
LIVE-3129
✅ Checklist
📸 Demo
https://youtu.be/pw8xn9YJhXk
🚀 Expectations to reach
Please make sure you follow these Important Steps.
Pull Requests must pass the CI and be internally validated in order to be merged.