Hi everyone! Has anyone tried using new multiline ...
# compose-android
g
Hi everyone! Has anyone tried using new multiline
TextField
(with
TextFieldState
) inside material's
BottomSheetDialogFragment
? I'm receiving weird behavior when popup constantly jumps while typing text inside TextField because of opened keyboard. Such behavior is not reproducible with old TextField (I'm using compose material TextField here for simplicity, but the same happens with plain BasicTextField without decorations). Code and video in thread
👀 2
Screen_recording_20240920_105257.webm
This is the simplest reproducer I've came up with:
Copy code
class MyPopupFragment : BottomSheetDialogFragment() {
    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ) = ComposeView(inflater.context).apply {
        setContent {
            TextField(
                state = remember { TextFieldState() },
                lineLimits = TextFieldLineLimits.MultiLine(4, 4),
            )
        }
    }
}
e
I’ve got this kind of problem too but not using bottom sheet dialog fragment. It also happens to me when I use a multiline textField limit. Try without you won’t have the bug. Try then to enter character while you don’t have ; lines. The bug will occur again ;) How can we report this to the compose team ?
z
The bug tracker link is in the channel topic
e
I've opened an issue here : https://issuetracker.google.com/issues/368378073 I'll try to add my way to reproduce it
🔥 1