Fix: 修复micropython下板卡文件管理在嵌套文件夹下工作异常
This commit is contained in:
@@ -573,7 +573,12 @@ class FileTree extends Component {
|
||||
if (!this.#selected_) {
|
||||
return;
|
||||
}
|
||||
this.select(this.#selected_);
|
||||
let elem = document.getElementById(this.#selected_);
|
||||
if (!elem) {
|
||||
return;
|
||||
}
|
||||
this.#jstree_.select_node(this.#selected_, true, true);
|
||||
$(elem).children('.jstree-wholerow').addClass('jstree-wholerow-clicked');
|
||||
}
|
||||
|
||||
deselect(inPath) {
|
||||
|
||||
Reference in New Issue
Block a user