提交 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 ...@@ -445,12 +445,15 @@ export class FilesRenderer implements ICompressibleTreeRenderer<ExplorerItem, Fu
DOM.addStandardDisposableListener(inputBox.inputElement, DOM.EventType.KEY_UP, (e: IKeyboardEvent) => { DOM.addStandardDisposableListener(inputBox.inputElement, DOM.EventType.KEY_UP, (e: IKeyboardEvent) => {
showInputBoxNotification(); showInputBoxNotification();
}), }),
DOM.addDisposableListener(inputBox.inputElement, DOM.EventType.BLUR, () => {
done(inputBox.isInputValid(), true);
}),
label, label,
styler 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(() => { return toDisposable(() => {
done(false, false); done(false, false);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册