langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
46.75k stars 6.61k forks source link

fix: start node input config modal raise 'variable name is required' #8793

Closed hjlarry closed 2 days ago

hjlarry commented 2 days ago

Checklist:

[!IMPORTANT]
Please review the checklist below before submitting your pull request.

Description

https://github.com/user-attachments/assets/c5547d2b-3d1b-4530-8013-35ee64fae0f0

when open the input config modal of start node, the first input element will auto focus, and then click any other elements will trigger checkVariableName. So when click the cancel button or other field type button will raise an error first, which is strange.

my solution is to make another html element auto focus, any other better solutions?

Type of Change

Testing Instructions

test locally.