mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-27 11:03:23 +03:00
removed hyphens from tags
This commit is contained in:
parent
0af771dd58
commit
6d49bc7818
@ -475,7 +475,7 @@ export const Tag = ({
|
|||||||
const _handleChange = (e) => setValue(e.target.value.toLowerCase());
|
const _handleChange = (e) => setValue(e.target.value.toLowerCase());
|
||||||
|
|
||||||
const _handleKeyPress = (e) => {
|
const _handleKeyPress = (e) => {
|
||||||
let regex = /[a-z0-9\s-]/i;
|
let regex = /[a-z0-9\s]/i;
|
||||||
|
|
||||||
if (e.key === "Enter" && value.length) {
|
if (e.key === "Enter" && value.length) {
|
||||||
_handleAdd(value);
|
_handleAdd(value);
|
||||||
|
Loading…
Reference in New Issue
Block a user