You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, @miya! I'm here to help you with bug reports, questions, and becoming a contributor. Let's work together to solve this issue.
The issue you're experiencing with unexpected tag creation when pressing 'Enter' during tag conversion is related to the conditional logic in the code. The behavior is determined by the customizedConfirmKey prop and the isSpecialMode variable. If isSpecialMode is false and the customizedConfirmKey is set to 'Enter', the code will attempt to add the trimmed input value as a new tag if it meets certain conditions (not empty, not already in the list, and not longer than 20 characters) [1].
To address this issue, you might need to adjust the logic to differentiate between confirming text conversion and creating a new tag. This could involve modifying the conditions under which a tag is created when the 'Enter' key is pressed, especially in scenarios where text conversion is intended.
Self Checks
Dify version
0.15.2
Cloud or Self Hosted
Cloud
Steps to reproduce
2025-01-25.18.29.32.mov
✔️ Expected Behavior
Prevent tag creation when pressing enter to confirm text conversion
❌ Actual Behavior
Tag is created when pressing enter to confirm text conversion
The text was updated successfully, but these errors were encountered: