Skip to content

Conversation

@cto-new
Copy link

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

Summary

This PR introduces in-depth documentation, demos, and usage guidance explaining why selectFirst does not trigger onChange on initialization, and how to correctly handle such scenarios in AMIS forms.

Details

  • Adds SELECT_FIRST_ONCHANGE_ANALYSIS.md with code guides, root-cause, and workaround options for selectFirst/onChange
  • Adds SELECT_FIRST_DEMO.html to visually demonstrate and log behavior for end-users and stakeholders
  • Adds examples/components/Form/SelectFirstDemo.jsx with live AMIS pattern demos and solution recipes
  • Includes SELECT_FIRST_INVESTIGATION_SUMMARY.md for concise investigation recap and recommendations
  • Provides QUICK_REFERENCE.md for quick, actionable reminders and solution selection

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

…or selectFirst onChange behavior

This change provides comprehensive documentation, code examples, and practical demonstrations clarifying why the 'selectFirst' option in select and options controls does not trigger the onChange event on initialization.

- Adds SELECT_FIRST_ONCHANGE_ANALYSIS.md with code tracing, full root-cause analysis, and solution recommendations
- Adds SELECT_FIRST_DEMO.html as a runnable demonstration highlighting expected behavior and event triggering
- Adds examples/components/Form/SelectFirstDemo.jsx for in-ecosystem example usage
- Adds SELECT_FIRST_INVESTIGATION_SUMMARY.md for human-friendly summary
- Adds QUICK_REFERENCE.md for rapid field guidance

Addresses confusion around selectFirst's initialization design and provides recommended solutions for real-world needs.
@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