Fix drawing when focus items set - we should not attempt to stylize!
This commit is contained in:
parent
5caf7a9fce
commit
bc55317a4b
|
@ -66,10 +66,7 @@ function VerticalMenuView(options) {
|
||||||
let sgr;
|
let sgr;
|
||||||
if(item.focused && self.hasFocusItems()) {
|
if(item.focused && self.hasFocusItems()) {
|
||||||
const focusItem = self.focusItems[index];
|
const focusItem = self.focusItems[index];
|
||||||
text = strUtil.stylizeString(
|
text = focusItem ? focusItem.text : item.text;
|
||||||
focusItem ? focusItem.text : item.text,
|
|
||||||
self.focusTextStyle
|
|
||||||
);
|
|
||||||
sgr = '';
|
sgr = '';
|
||||||
} else {
|
} else {
|
||||||
text = strUtil.stylizeString(item.text, item.focused ? self.focusTextStyle : self.textStyle);
|
text = strUtil.stylizeString(item.text, item.focused ? self.focusTextStyle : self.textStyle);
|
||||||
|
|
Loading…
Reference in New Issue