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

Editor control: 1. OnMeasure event is not get called in iOS and 2. Unfocused event also not working if tapped outside of control. #22729

Open
divyesh008 opened this issue May 30, 2024 · 2 comments
Labels
area-controls-editor Editor platform/android 🤖 platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@divyesh008
Copy link

divyesh008 commented May 30, 2024

Description

I have requirement that when Editor have long text and it is not being edited, I want to show only 2 or 3 lines with ellipsis and when that field is being edited the full text should be visible.

For this I have created custom Editor control, source code is attached in repository link section. I have noticed few bugs in Editor which is as mentioned below:

  1. In iOS the Cursor is not getting set to the last position when getting focus in Android it works just fine.
    • It getting set in between anywhere in the editor.
    • It sometimes selects the word when focused.
  2. OnMeasure method is also not getting called in iOS, this again works fine in Android.
  3. Unfocused event is not working if tapped outside of editor control for both Android & iOS.
    • When there is not other input control is available on page
  4. In iOS when Editor gets control it scroll downs the entire ui from top and restored it back once the keyboard is hide.

Steps to Reproduce

  1. Open demo project and run in iOS simulator or device
  2. Start typing longer text till in first Editor it shows 4-5 lines
  3. Moved to second editor and notice that first Editor just shows 2-3 lines with ellipsis
  4. Now if you go to first editor again, it will show full text but the cursor is getting set in between of text or select word (in iOS only
  5. Add the debug point to OnMeasure in iOS its not getting hit, for Android it does get called.
  6. Do the same process in Android and see it will work fine

Link to public reproduction project repository

https://github.com/divyesh008/Editor_bug.git

Version with bug

8.0.10 SR3

Is this a regression from previous behavior?

No, this is something new, Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android

Affected platform versions

iOS 17.2

Did you find any workaround?

No

Relevant log output

No response

@divyesh008 divyesh008 added the t/bug Something isn't working label May 30, 2024
Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@ninachen03 ninachen03 added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels May 31, 2024
@ninachen03
Copy link

Verified this issue with Visual Studio 17.11.0 Preview 1.1(8.0.40 & 8.0.21). Can repro on iOS platform with sample project.

@jsuarezruiz jsuarezruiz added this to the Backlog milestone Jun 4, 2024
@samhouts samhouts removed s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 3, 2024
@samhouts samhouts added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-editor Editor platform/android 🤖 platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants