mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-25 16:09:42 +01:00
fix: disallow addition of empty tags (#99)
This commit is contained in:
@@ -139,6 +139,10 @@ const Properties = props => {
|
||||
event.key === ","
|
||||
) {
|
||||
const value = event.target.value;
|
||||
if (value.trim().length === 0) {
|
||||
event.target.value = "";
|
||||
return;
|
||||
}
|
||||
setTag(value.trim().replace(",", ""));
|
||||
event.target.value = "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user