Skip to content

Commit

Permalink
PM-14429 Set the min and max range of the slider to match the restric…
Browse files Browse the repository at this point in the history
…tions not update the min with the computed min. (#4305)
  • Loading branch information
dseverns-livefront authored Nov 14, 2024
1 parent 3c4ac8b commit 1321034
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,12 @@ private fun ColumnScope.PasswordTypeContent(

BitwardenSlider(
value = passwordTypeState.length,
onValueChange = passwordHandlers.onPasswordSliderLengthChange,
range = passwordTypeState.computedMinimumLength..passwordTypeState.maxLength,
onValueChange = { newValue, isUserInteracting ->
if (newValue >= passwordTypeState.computedMinimumLength) {
passwordHandlers.onPasswordSliderLengthChange(newValue, isUserInteracting)
}
},
range = passwordTypeState.minLength..passwordTypeState.maxLength,
sliderTag = "PasswordLengthSlider",
valueTag = "PasswordLengthLabel",
modifier = Modifier
Expand Down

0 comments on commit 1321034

Please sign in to comment.