@refinitiv-ui/elements 6.17.1 → 6.17.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 +6 -0
- package/lib/slider/elements/slider.js +5 -2
- package/lib/version.js +1 -1
- package/package.json +5 -5
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
|
+
## [6.17.2](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.17.1...@refinitiv-ui/elements@6.17.2) (2024-06-24)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **slider:** resolve missing thumb reference when from and to are initially equal ([#1179](https://github.com/Refinitiv/refinitiv-ui/issues/1179)) ([b07a4ab](https://github.com/Refinitiv/refinitiv-ui/commit/b07a4abb0ea982d442510772630325b39bf98a4f))
|
|
11
|
+
|
|
6
12
|
## [6.17.1](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.17.0...@refinitiv-ui/elements@6.17.1) (2024-06-17)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
|
@@ -862,12 +862,15 @@ let Slider = class Slider extends FormFieldElement {
|
|
|
862
862
|
if (distanceFrom < distanceTo) {
|
|
863
863
|
this.changedThumb = this.fromThumbRef.value;
|
|
864
864
|
this.fromPreviousInput = this.from;
|
|
865
|
+
// When from === to & changedThumb is already set,
|
|
866
|
+
// use its latest value and z-index will determine thumb on top.
|
|
867
|
+
// If this's the first drag, changedThumb would be unset.
|
|
868
|
+
// In that case, set changedThumb to "to" as it appears after "from" in the DOM.
|
|
865
869
|
}
|
|
866
|
-
else if (distanceFrom > distanceTo) {
|
|
870
|
+
else if (distanceFrom > distanceTo || !this.changedThumb) {
|
|
867
871
|
this.changedThumb = this.toThumbRef.value;
|
|
868
872
|
this.toPreviousInput = this.to;
|
|
869
873
|
}
|
|
870
|
-
// When from === to, use latest value of changedThumb and z-index will determine thumb on top
|
|
871
874
|
}
|
|
872
875
|
else {
|
|
873
876
|
this.changedThumb = this.valueThumbRef.value;
|
package/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '6.17.
|
|
1
|
+
export const VERSION = '6.17.2';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refinitiv-ui/elements",
|
|
3
|
-
"version": "6.17.
|
|
3
|
+
"version": "6.17.2",
|
|
4
4
|
"description": "Element Framework Elements",
|
|
5
5
|
"author": "LSEG",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -339,8 +339,8 @@
|
|
|
339
339
|
},
|
|
340
340
|
"dependencies": {
|
|
341
341
|
"@lit-labs/context": "^0.3.1",
|
|
342
|
-
"@refinitiv-ui/halo-theme": "^6.8.
|
|
343
|
-
"@refinitiv-ui/solar-theme": "^6.5.
|
|
342
|
+
"@refinitiv-ui/halo-theme": "^6.8.1",
|
|
343
|
+
"@refinitiv-ui/solar-theme": "^6.5.1",
|
|
344
344
|
"@types/chart.js": "^2.9.31",
|
|
345
345
|
"chart.js": "~2.9.4",
|
|
346
346
|
"d3-interpolate": "^3.0.1",
|
|
@@ -351,7 +351,7 @@
|
|
|
351
351
|
},
|
|
352
352
|
"devDependencies": {
|
|
353
353
|
"@refinitiv-ui/core": "^6.5.7",
|
|
354
|
-
"@refinitiv-ui/demo-block": "^6.1.
|
|
354
|
+
"@refinitiv-ui/demo-block": "^6.1.26",
|
|
355
355
|
"@refinitiv-ui/i18n": "^6.0.21",
|
|
356
356
|
"@refinitiv-ui/phrasebook": "^6.3.9",
|
|
357
357
|
"@refinitiv-ui/test-helpers": "^6.0.15",
|
|
@@ -370,5 +370,5 @@
|
|
|
370
370
|
"publishConfig": {
|
|
371
371
|
"access": "public"
|
|
372
372
|
},
|
|
373
|
-
"gitHead": "
|
|
373
|
+
"gitHead": "d831cd966b94fee60b7d6734d369b14f02903240"
|
|
374
374
|
}
|