Skip to content

Commit

Permalink
adapt reset button visibility for action button inputs that set value…
Browse files Browse the repository at this point in the history
… to the field
  • Loading branch information
xavimolloy committed Oct 10, 2023
1 parent 0d22f00 commit aa46a5a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ internal fun BasicTextInput(
) {
val inputValue by remember(inputText) { mutableStateOf(inputText) }

var deleteButtonIsVisible by remember { mutableStateOf(!inputText.isNullOrEmpty() && state != InputShellState.DISABLED) }
var deleteButtonIsVisible by remember(inputText) { mutableStateOf(!inputText.isNullOrEmpty() && state != InputShellState.DISABLED) }
val focusManager = LocalFocusManager.current
val focusRequester = remember { FocusRequester() }

Expand Down

0 comments on commit aa46a5a

Please sign in to comment.