@enact/ui 4.0.8 → 4.1.0

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
@@ -2,11 +2,17 @@
2
2
 
3
3
  The following is a curated list of changes in the Enact ui module, newest changes on the top.
4
4
 
5
+ ## [4.1.0] - 2021-11-04
6
+
7
+ ### Fixed
8
+
9
+ - `ui/MarqueeDecorator` to restart animation when text changed while focus retained
10
+
5
11
  ## [4.0.8] - 2021-10-21
6
12
 
7
13
  ### Fixed
8
14
 
9
- `ui/MarqueeDecorator` style to render text properly when starting animation
15
+ - `ui/MarqueeDecorator` style to render text properly when starting animation
10
16
 
11
17
  ## [4.0.7] - 2021-09-28
12
18
 
@@ -492,6 +492,10 @@ var MarqueeDecorator = (0, _hoc["default"])(defaultConfig, function (config, Wra
492
492
  forceRestartMarquee = marqueeOn === 'render' || this.sync && (this.state.animating || this.timerState > TimerState.CLEAR);
493
493
  this.invalidateMetrics();
494
494
  this.cancelAnimation();
495
+
496
+ if (forceRestartMarquee && marqueeOn === 'focus') {
497
+ this.resetAnimation();
498
+ }
495
499
  } else if (prevProps.marqueeOn !== marqueeOn || prevProps.marqueeDisabled !== marqueeDisabled || prevProps.marqueeSpeed !== marqueeSpeed || prevProps.forceDirection !== forceDirection) {
496
500
  this.cancelAnimation();
497
501
  } else if (disabled && this.isHovered && marqueeOn === 'focus' && this.sync) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enact/ui",
3
- "version": "4.0.8",
3
+ "version": "4.1.0",
4
4
  "description": "A collection of simplified unstyled cross-platform UI components for Enact",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -25,7 +25,7 @@
25
25
  }
26
26
  },
27
27
  "dependencies": {
28
- "@enact/core": "^4.0.8",
28
+ "@enact/core": "^4.1.0",
29
29
  "classnames": "^2.2.5",
30
30
  "direction": "^1.0.1",
31
31
  "invariant": "^2.2.2",