提交 8091d543 编写于 作者: I isidor

Do not react immediatly on blur events due to tree refresh potentially causing an early blur

fixes #96566
上级 ab0958ea
......@@ -445,12 +445,15 @@ export class FilesRenderer implements ICompressibleTreeRenderer<ExplorerItem, Fu
DOM.addStandardDisposableListener(inputBox.inputElement, DOM.EventType.KEY_UP, (e: IKeyboardEvent) => {
showInputBoxNotification();
}),
DOM.addDisposableListener(inputBox.inputElement, DOM.EventType.BLUR, () => {
done(inputBox.isInputValid(), true);
}),
label,
styler
];
setTimeout(() => {
// Do not react immediatly on blur events due to tree refresh potentially causing an early blur #96566
toDispose.push(DOM.addDisposableListener(inputBox.inputElement, DOM.EventType.BLUR, () => {
done(inputBox.isInputValid(), true);
}));
}, 100);
return toDisposable(() => {
done(false, false);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册