Fix caret misplaced upon pressing Return when using Japanese symbols … (#11316)

This commit is contained in:
Oleksii Bulenok
2026-07-28 17:17:29 +02:00
committed by GitHub
parent 2f36a6de5a
commit 8263175a03
2 changed files with 15 additions and 9 deletions
@@ -26,7 +26,7 @@ import {
} from '#/view/com/composer/text-input/text-input-util'
import {atoms as a, useAlf} from '#/alf'
import {normalizeTextStyles} from '#/alf/typography'
import {IS_ANDROID, IS_NATIVE} from '#/env'
import {IS_ANDROID} from '#/env'
import {Autocomplete} from './mobile/Autocomplete'
import {type TextInputProps} from './TextInput.types'
@@ -171,13 +171,6 @@ export function TextInput({
},
)
/**
* PasteInput doesn't like `lineHeight`, results in jumpiness
*/
if (IS_NATIVE) {
style.lineHeight = undefined
}
/*
* Android impl of `PasteInput` doesn't support the array syntax for `fontVariant`
*/