Closed epoll31 closed 2 months ago
I think this behavior is intentional because of onBlur
handler. if input
has value and it loses focus the onBlur
handler will add the value in keywords
state.
if you think this is an actual bug I would like to contribute @Ansub :)
yeah you are right @adii1203 but i think it will be a better UX if we do it like @epoll31 is saying
if you want to contribute to this, it's all yours. lmk so that i can assign this issue to you :)
I have created the PR, let me know what you think about my solution. @Ansub @epoll31
s
Description đ
Input component has bug where deleting old badges will perform an onSubmit action.
Link đ
https://syntaxui.com/docs/components/input
Steps to Reproduce đ
x
on a badge to remove itScreenshots đ¸
https://github.com/Ansub/SyntaxUI/assets/16091805/06001824-7870-4be7-822d-896d7489de0a
Expected Behavior đ¤
Removing an old badge will not submit the new one
Actual Behavior đą
Removing an old badge will submit the new one
Environment đ
n/a
Additional Information âšī¸
No response