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

Mobile devices cannot add tags - enter does not submit tags but instead moves to next form field #201

Open
VexyCats opened this issue Jul 29, 2020 · 1 comment

Comments

@VexyCats
Copy link

  <Form.Group controlId="formBasicEmail" className={styles.appFormgroup}>
      <Form.Label className={styles.appInfolabel}>{label}</Form.Label>
      <TagsInput
        className={styles.appTagsblock}
        onChange={onChange}
        onChangeInput={onChangeInput}
        inputValue={inputValue}
        value={value || []}
        maxTags={8}
        addKeys={[9, 13]}
        maxlength="16"
        {...props}
      />
      {touched && invalid && (
        <div
          className="signerror"
        >
          {error}
        </div>
      )}
    </Form.Group>

Works fine on computer/browser. On mobile enter will only go to the next field and not actually submit the tags.

@sushanyadav
Copy link

sushanyadav commented Aug 15, 2020

Same issue.

solved it by wrapping TagsInput with form

 <form>
 <TagsInput/>
 </form>

But form cannot be nested . :(

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

2 participants