Skip to content

Commit 494c303

Browse files
Update src/interaction/action/util.ts
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 33f4b6c commit 494c303

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interaction/action/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export function getElementsByState(view: View, stateName: string): Element[] {
191191
// 存在子视图
192192
if (view.views && view.views.length) {
193193
each(view.views, (subView: View) => {
194-
rst = rst.concat(getElementsByState(subView, stateName));
194+
rst.push(...getElementsByState(subView, stateName));
195195
});
196196
}
197197
return rst;

0 commit comments

Comments
 (0)