Skip to content

Commit

Permalink
Display input rest button if the input value is not null or blank
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth committed Oct 13, 2023
1 parent 7e549b2 commit 5f20504
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ fun InputDateTime(
)
},
primaryButton = {
if (state != InputShellState.DISABLED) {
if (!value.isNullOrBlank() && state != InputShellState.DISABLED) {
IconButton(
modifier = Modifier.testTag("INPUT_DATE_TIME_RESET_BUTTON").padding(Spacing.Spacing0),
icon = {
Expand Down

0 comments on commit 5f20504

Please sign in to comment.