Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: restore bottom sheet when keyboard is dismissed#2511

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
michael-pingo-ai wants to merge1 commit intogorhom:master
base:master
Choose a base branch
Loading
frommichael-pingo-ai:fix-keyboard-index

Conversation

@michael-pingo-ai
Copy link

@michael-pingo-aimichael-pingo-ai commentedOct 3, 2025
edited
Loading

Please provide enough information so that others can review your pull request:

Motivation

Explain themotivation for making this change. What existing problem does the pull request solve?

This PR fixes a bug where the bottom sheet could assign a raw position value to index when the keyboard was shown. This caused animatedCurrentIndex to be set to invalid values (e.g.235), which led to broken state and the sheet height not resetting when the keyboard was dismissed.

The fix ensures index is resolved against the detents array, falling back to DEFAULT_KEYBOARD_INDEX if no match is found.

Solves:
#2509
#2465
#2460

AgustinMJ, FabianUntermoser, and a-klotz-p8 reacted with heart emoji
position!==closedDetentPosition
){
index=highestDetentPosition??DEFAULT_KEYBOARD_INDEX;
index=detents?.indexOf(highestDetentPosition??0)??DEFAULT_KEYBOARD_INDEX;
Copy link

@AgustinMJAgustinMJOct 7, 2025
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Just found the same bug and was about to open the same pr😁

I think it is better to just get the last item of the array since we know they are sorted in ascending order, right?

Suggested change
index=detents?.indexOf(highestDetentPosition??0)??DEFAULT_KEYBOARD_INDEX;
index=detents?.length ?detents.length-1 :DEFAULT_KEYBOARD_INDEX;

kazemmdev and Etaboada95 reacted with thumbs up emoji
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@AgustinMJAgustinMJAgustinMJ left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@michael-pingo-ai@AgustinMJ

[8]ページ先頭

©2009-2025 Movatter.jp