Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If we do click on Spacebar, It should not produce the empty content. ANY SOLUTION ?? #83

Open
workninja19 opened this issue Jun 28, 2020 · 2 comments

Comments

@workninja19
Copy link

IMG_20200628_210540

@workninja19 workninja19 changed the title If we do the backspace, It should not produce the empty content. ANY SOLUTION ?? If we do click on Spacebar, It should not produce the empty content. ANY SOLUTION ?? Jun 28, 2020
@jwilld
Copy link

jwilld commented Dec 19, 2020

Are you still having this issue?

@NoorAhmed407
Copy link

onChangeText={(text) =>onChangeTagValue(text)}

//OnChangeTagValue Function

const onChangeTagValue = (val)=>{
    let lastCharacter = val.charAt(val.length - 1);
    if(lastCharacter == " " && val.trim().length){
        setTagText('');
        setTags([...tags,val.trim()]);
    }
    else{
        setTagText(val);
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants