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

fix(text-input-affix): fix right TextInput.Affix alignment with onPress #4415

Conversation

seb-zabielski
Copy link
Contributor

@seb-zabielski seb-zabielski commented May 22, 2024

Motivation

The position of the right TextInput.Affix is not calculated correctly when the onPress method is provided.

Related issue

#4407

Test plan

Run Example and add a right affix to TextInput with the onPress property. Affix should render the same as without onPress. You can also try the example from the related issue.

The first recording shows how the component behaves before the fix (without and with the onPress property). The second is the result after the fix.

before.mov
after.mov

@callstack-bot
Copy link

Hey @seb-zabielski, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

@gedu gedu added this to the 5.12.4 milestone May 22, 2024
@gedu
Copy link
Contributor

gedu commented May 22, 2024

@seb-zabielski Cool thanks for the PR, can you provide some video showing the fix?

@seb-zabielski
Copy link
Contributor Author

@gedu I have updated the description and added the recordings there

@gedu gedu self-requested a review June 6, 2024 06:39
@lukewalczak lukewalczak merged commit f577097 into callstack:main Jul 27, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants