drawdb-io / drawdb

Free, simple, and intuitive online database design tool and SQL generator.
https://drawdb.vercel.app
MIT License
12.09k stars 855 forks source link

Enum values are not getting entered on mobile #73

Closed 1ilit closed 1 month ago

1ilit commented 2 months ago

To reproduce:

Enter value and click enter or enter comma separated values in batch and click enter

Expected behavior:

The values should look like tags and the input field should no longer give an error

Actual behavior:

Focus goes to comment input field and the enum values input still shows an error

Browser:

Chrome

OS:

Android

https://github.com/drawdb-io/drawdb/assets/96800776/7993c76f-271d-408e-bdde-958a74c5829c

l123wx commented 2 months ago

image

We can add the 'addOnBlur' attribute to TagInput to trigger the split behavior when the input box loses focus. I'll submit a pull request to fix this issue.