Skip to content

Commit 0430f12

Browse files
authored
fix(TextBox): toggleMarquee should not short-circuit if there is no contentTag (#449)
1 parent 4bafaa1 commit 0430f12

File tree

1 file changed

+1
-1
lines changed
  • packages/@lightningjs/ui-components/src/components/TextBox

1 file changed

+1
-1
lines changed

packages/@lightningjs/ui-components/src/components/TextBox/TextBox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ export default class TextBox extends Base {
321321
}
322322

323323
_toggleMarquee(contentTag) {
324-
if (!contentTag) return;
324+
// do not just return if there is no contentTag, we may still need to alpha the Marquee
325325
if (this.marquee) {
326326
if (contentTag) {
327327
contentTag.alpha = 0.001;

0 commit comments

Comments
 (0)