@refinitiv-ui/elements 7.13.1 → 7.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [7.13.2](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@7.13.1...@refinitiv-ui/elements@7.13.2) (2024-07-30)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **slider:** reflect to old value on empty input value ([#1195](https://github.com/Refinitiv/refinitiv-ui/issues/1195)) ([506ec73](https://github.com/Refinitiv/refinitiv-ui/commit/506ec73f8b588fbd9862497b58a7727a1adbc9f9))
11
+
6
12
  ## [7.13.1](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@7.13.0...@refinitiv-ui/elements@7.13.1) (2024-07-15)
7
13
 
8
14
  ### Bug Fixes
@@ -758,14 +758,17 @@ let Slider = class Slider extends FormFieldElement {
758
758
  if (this.readonly) {
759
759
  return;
760
760
  }
761
- const { value, name } = event.target;
761
+ const inputEl = event.target;
762
+ const { value, name } = inputEl;
762
763
  const currentData = name;
763
764
  const previousData = `${name}Previous`;
764
- if (value && this[currentData] !== value) {
765
+ if (!value) {
766
+ inputEl.value = this[currentData];
767
+ }
768
+ else if (this[currentData] !== value) {
765
769
  this.updateNotifyProperty(currentData, value);
766
770
  this[previousData] = value;
767
771
  }
768
- event.preventDefault();
769
772
  }
770
773
  /**
771
774
  * On number-field input
package/lib/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = '7.13.1';
1
+ export const VERSION = '7.13.2';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@refinitiv-ui/elements",
3
- "version": "7.13.1",
3
+ "version": "7.13.2",
4
4
  "description": "Element Framework Elements",
5
5
  "author": "LSEG",
6
6
  "license": "Apache-2.0",
@@ -373,5 +373,5 @@
373
373
  "publishConfig": {
374
374
  "access": "public"
375
375
  },
376
- "gitHead": "09b73d0f15b68a1fb01d8fe153a1e126ac7ebefe"
376
+ "gitHead": "73f95529865ca81cce75efbe496d7e4b37e5d67a"
377
377
  }