SyntaxUI / syntaxui

Get free access to pre-built, Tailwind CSS-powered components, animations and effects - brought to life using Framer Motion. Just copy, paste and you're ready to go!
https://syntaxui.com
MIT License
636 stars 45 forks source link

[BUG]: Empty Keyword get added on enter #125

Closed adii1203 closed 2 months ago

adii1203 commented 2 months ago

Description 📝

Empty keyword get added when you press enter without typing anything.

Link 🔗

https://syntaxui.com/docs/components/input

Steps to Reproduce 🔄

  1. Go to https://syntaxui.com/docs/components/input
  2. Press enter in the input field without typing anything

Screenshots 📸

https://github.com/Ansub/SyntaxUI/assets/114096753/ee3ffa98-e476-406f-987e-7df271dd3d24

Expected Behavior 🤔

on Enter don't do anything when the input value is empty (' ')

Actual Behavior 😱

The empty keyword gets added on Enter when the input field is empty.

Environment 🌍

Additional Information ℹī¸

No response

Ansub commented 2 months ago

oops, you are fixing it?

adii1203 commented 2 months ago

I can, if you say

Ansub commented 2 months ago

all yours :)