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

TextField does not work inside of DecoratedWindowScope.TitleBarView #753

Closed
bjuretic opened this issue Jan 17, 2025 · 1 comment
Closed

Comments

@bjuretic
Copy link

Any reason TextField inside of the decorated Windows's TitleBarView does not want to accept clicks? It shows up properly, but it does not seem to react to click events, so it cannot be used at all as it never activates the text entry mode and focus.

@Composable
fun DecoratedWindowScope.TitleBarView() {
  val searchTerm by remember { mutableStateOf(TextFieldState()) }

  TitleBar(Modifier.newFullscreenControls()) {
    Row(Modifier.align(Alignment.Start)) {
      TextField(
          state = searchTerm,
          placeholder = { Text("Search") },
          modifier = Modifier.height(30.dp).width(350.dp))
...
@bjuretic
Copy link
Author

Actually this seems to be related to #731 which is in the works, so ignore my issue.

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

No branches or pull requests

1 participant