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;
|
||||
if(item.focused && self.hasFocusItems()) {
|
||||
const focusItem = self.focusItems[index];
|
||||
text = strUtil.stylizeString(
|
||||
focusItem ? focusItem.text : item.text,
|
||||
self.focusTextStyle
|
||||
);
|
||||
text = focusItem ? focusItem.text : item.text;
|
||||
sgr = '';
|
||||
} else {
|
||||
text = strUtil.stylizeString(item.text, item.focused ? self.focusTextStyle : self.textStyle);
|
||||
|
|
Loading…
Reference in New Issue