@Siyamed Several day ago I wrote: “I have a Column of the FilledTextFields on the screen and the fields has the same keyboard type . When I input a text to the FilledTextFields step by step from the top to the bottom, the virtual keyboard is disappeared and appeared again. When I input text to the fields from the bottom to the top the virtual keyboard is stable position without any changes.” Ivan Petrov report about the bug (issue id 159432617). I found the bug exist in the file CoreTextField.kt in the function private fun TextInputEventObserver when the focusModifier.focusDedailedState equals FocusDetailedState.Inactive. The problem is fixed with changing if statements in the function as following:
if (focusModifier.focusState == FocusState.Focused &&
prevState.value == FocusState.NotFocused && focusModifier.focusDetailedState == FocusDetailedState.Active
) {
onFocus()
}
if (focusModifier.focusState == FocusState.NotFocused &&
prevState.value == FocusState.Focused && focusModifier.focusDetailedState == FocusDetailedState.Active
) {
onBlur(false) // TODO: Need to know if there is next focus element
}
Now the bug gone, but a new bug would be arisen somewhere relative to changing.🙂