Skip to content

Commit

Permalink
pkp/pkp-lib#5885 updated and added new UI component (#333)
Browse files Browse the repository at this point in the history
* pkp/pkp-lib#5885 updated and added new UI component

* pkp/pkp-lib#5885 fixed issue with value updating in db

* pkp/pkp-lib#5885 removed unnecessary fields and controls with field range component enhancement

* pkp/pkp-lib#5885 updated using new slider component

* pkp/pkp-lib#5885 fixed merged conflict
  • Loading branch information
touhidurabir authored Aug 30, 2024
1 parent c006bca commit 6dedc2b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/Form/fields/FieldSlider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,12 @@ export default {
},
computed: {
displayedValue() {
if (this.valueLabelMin && this.currentValue == this.min) {
if (
this.valueLabelMin &&
(this.currentValue == this.min ||
this.currentValue == null ||
this.currentValue == undefined)
) {
return this.replaceLocaleParams(this.valueLabelMin, {
value: this.currentValue,
});
Expand Down

0 comments on commit 6dedc2b

Please sign in to comment.