From 6dedc2bf74ba2809c096e09f0a72797a18adacba Mon Sep 17 00:00:00 2001 From: Touhidur Rahman Date: Fri, 30 Aug 2024 22:51:18 +0600 Subject: [PATCH] pkp/pkp-lib#5885 updated and added new UI component (#333) * 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 --- src/components/Form/fields/FieldSlider.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/Form/fields/FieldSlider.vue b/src/components/Form/fields/FieldSlider.vue index 19c86abca..73d02c7ea 100644 --- a/src/components/Form/fields/FieldSlider.vue +++ b/src/components/Form/fields/FieldSlider.vue @@ -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, });