Skip to content

[Optimize][Event] Add the nodeIndex parameter to events in the mini-program.#6902

Closed
rAY-ooo wants to merge 1 commit into
developfrom
shadow/p/rAY-ooo/dev/f_eventnodeindex
Closed

[Optimize][Event] Add the nodeIndex parameter to events in the mini-program.#6902
rAY-ooo wants to merge 1 commit into
developfrom
shadow/p/rAY-ooo/dev/f_eventnodeindex

Conversation

@rAY-ooo

@rAY-ooo rAY-ooo commented May 26, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@jianliang00 jianliang00 force-pushed the shadow/p/rAY-ooo/dev/f_eventnodeindex branch from d63dc63 to bacd12a Compare May 26, 2026 08:08
- Pass optional ElementInfo through component creation so component elements keep their nodeIndex.
- Include nodeIndex in event target payloads when an Element is available, while preserving callers that only provide an AttributeHolder.
- Keep the type-element-api package testable by declaring its TypeScript dev dependency and aligning tsconfig with existing type packages.

TEST: lynx/tools/rtf/rtf native-ut run --names lynx --target events_test_exec --gtest-filter="TouchEventHandlerTest.*" --silent
TEST: pnpm --dir lynx/js_libraries/type-element-api test
@jianliang00 jianliang00 force-pushed the shadow/p/rAY-ooo/dev/f_eventnodeindex branch from bacd12a to 5c784c7 Compare May 26, 2026 10:38
@lynxassistant lynxassistant Bot closed this May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant