Skip to content

fix: cp-7.44.0 Prevent re-renders of Field component in Snaps UI#14475

Merged
FrederikBolding merged 3 commits into
mainfrom
fb/fix-field-re-render-issue
Apr 7, 2025
Merged

fix: cp-7.44.0 Prevent re-renders of Field component in Snaps UI#14475
FrederikBolding merged 3 commits into
mainfrom
fb/fix-field-re-render-issue

Conversation

@FrederikBolding

@FrederikBolding FrederikBolding commented Apr 7, 2025

Copy link
Copy Markdown
Member

Description

Prevent re-renders of the Field component in Snaps UI which would make the keyboard briefly disappear. Since Field does not actually map to have any children (as it instead passes some components as props), we do not want the default key generation behavior. Instead, this PR introduces specific logic for fields.

Related issues

Fixes: MetaMask/snaps#3308

@FrederikBolding FrederikBolding requested a review from a team as a code owner April 7, 2025 11:07
@metamaskbot metamaskbot added team-snaps-platform-deprecated DEPRECATED: please use "team-core-platform" instead (or "team-new-networks" for Solana snap issues) INVALID-PR-TEMPLATE PR's body doesn't match template labels Apr 7, 2025
Mrtenz
Mrtenz previously approved these changes Apr 7, 2025
@github-actions

github-actions Bot commented Apr 7, 2025

Copy link
Copy Markdown
Contributor

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 7720dfa
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/57cfa8ea-f46b-481d-8d63-1e899f0e8858

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@sonarqubecloud

sonarqubecloud Bot commented Apr 7, 2025

Copy link
Copy Markdown

@FrederikBolding FrederikBolding added this pull request to the merge queue Apr 7, 2025
Merged via the queue into main with commit 2ab39eb Apr 7, 2025
@FrederikBolding FrederikBolding deleted the fb/fix-field-re-render-issue branch April 7, 2025 12:29
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 7, 2025
@metamaskbot metamaskbot added the release-7.45.0 Issue or pull request that will be included in release 7.45.0 label Apr 7, 2025
@NicolasMassart NicolasMassart changed the title fix: Prevent re-renders of Field component in Snaps UI [cp-7.44.0] fix: cp-7.44.0 Prevent re-renders of Field component in Snaps UI Apr 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

INVALID-PR-TEMPLATE PR's body doesn't match template release-7.45.0 Issue or pull request that will be included in release 7.45.0 team-snaps-platform-deprecated DEPRECATED: please use "team-core-platform" instead (or "team-new-networks" for Solana snap issues)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keyboard briefly disappears when Field is updated

3 participants