Skip to content

Conversation

@cto-new
Copy link

@cto-new cto-new bot commented Nov 3, 2025

Summary

This PR adds a comprehensive technical analysis and user-friendly report explaining why the selectFirst option in the Select component does not trigger onChange or inited events during initialization, and provides best practices and workarounds.

Details

  • Adds a markdown report (SELECT_FIRST_ANALYSIS.md, 调查报告_select组件selectFirst事件问题.md) with root cause analysis, source code references, sequence diagrams, and recommendations regarding selectFirst event behavior.
  • Includes a hands-on verification test (SELECT_FIRST_INVESTIGATION_TEST.md) for reproducing and observing the current behavior.
  • Offers best practice and workaround recommendations for triggering logic after select options are loaded using loadOptionsFinished or form inited events.
  • Highlights framework design reasoning and cautions against misusing selectFirst for business logic trigger.
  • No changes to core runtime code or public API; documentation and test assets only.

Warning: Task VM test is not passing, cto.new will perform much better if you fix the setup

… issue in Select component

Add detailed analysis and investigation report addressing why the `selectFirst` option in Select component does not trigger `onChange` or `inited` events during initialization. Included reproducing test, best practice guide, and solutions for proper event handling. Clarifies framework design intent and guides on recommended patterns. No user-facing or breaking changes.
@github-actions
Copy link

github-actions bot commented Nov 3, 2025

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant