From b38f4072f1f06631cd4a38f5849b0368e2db8858 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Fri, 8 Sep 2023 12:53:02 +0300 Subject: [PATCH] `which` is deprecated use `code` instead --- components/lib/tree/Tree.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/tree/Tree.vue b/components/lib/tree/Tree.vue index b7a18bdd5..046a6c54a 100755 --- a/components/lib/tree/Tree.vue +++ b/components/lib/tree/Tree.vue @@ -163,7 +163,7 @@ export default { return node.leaf === false ? false : !(node.children && node.children.length); }, onFilterKeydown(event) { - if (event.which === 13) { + if (event.code === 'Enter') { event.preventDefault(); } },