From 20711f19b075cb60eb1e49c5df25f8f34a2d309e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=AB=8B=E5=B8=AE?= <3294713004@qq.com> Date: Sun, 17 Nov 2024 20:12:38 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20=E4=BF=AE=E5=A4=8Dmicropython=E4=B8=8B?= =?UTF-8?q?=E6=9D=BF=E5=8D=A1=E6=96=87=E4=BB=B6=E7=AE=A1=E7=90=86=E5=9C=A8?= =?UTF-8?q?=E5=B5=8C=E5=A5=97=E6=96=87=E4=BB=B6=E5=A4=B9=E4=B8=8B=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/modules/mixly-modules/common/file-tree.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common/modules/mixly-modules/common/file-tree.js b/common/modules/mixly-modules/common/file-tree.js index 5c14cca2..4f688f96 100644 --- a/common/modules/mixly-modules/common/file-tree.js +++ b/common/modules/mixly-modules/common/file-tree.js @@ -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) {