Closed MikyungKim closed 1 month ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 80.79%. Comparing base (
a4d543d
) to head (a9d8c23
). Report is 1 commits behind head on develop.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
We will revisit the dropped coverage issue later.
Due to removing Spotlight.focus
, the other issue occurred when I tried to reproduce WRQ-8363 issue.
When editing complete by downkey while the pointer hovers on the next item, the long text disappear.
The removed 2 lines are necessary for this scenario. :(
Checklist
Issue Resolved / Feature Added
When there is long
label
insideIconItem
in editableScroller
, after done editing the marquee stops and it will never start again.Resolution
When completing edit, the DOM changes its order and it makes the marquee stops. I guess it's from engine but unfortunately, I coundn't find the specific logic or part. As far as I investigate, JS code has nothing to do with stopping maruee. To resolve this issue, I chose to let
Marquee
to invalidate its metrics to restart safely withinvalidateProps
ofMarqueeDecorator
. I've addedorder
asinvalidateProps
and pass it toMarquee
throughIconItem
in JSX so that letMarquee
know when the editing is done. For the case where the editing ended without DOM change, I changedSpotlight.focus
call added from https://github.com/enactjs/sandstone/pull/1550/files#diff-22d263c3907b8e109699fc727d876991ef576e0c70458dd2e6d59e014f7e426cR573-R574 conditionally to prevent stopping marquee.Additional Considerations
Currently there is no sample to test the problem. So you should change qa-sampler/IconItem.js to have
label
based on the change I made.Links
WRR-6050
Comments
Enact-DCO-1.0-Signed-off-by: Mikyung Kim (mikyung27.kim@lge.com)