Skip to content

Bug: Cannot read property 'insertBefore' of null #728

@gravitymedianet

Description

@gravitymedianet

Prerequisites

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed

https://codesandbox.io/s/bold-hugle-ql2uv?file=/src/App.js

Explanation

Should add a tag without errors, should place cursor at the end of the input

Console reports:

When you select your tag and hit enter:

tagify.min.js:1 Uncaught TypeError: Cannot read property 'insertBefore' of null
    at f.insertAfterTag (tagify.min.js:1)
    at tagify.min.js:1

Also, the caret jumps to the beginning of the field.

As a side note, please consider adding the non-minified code to your distribution, as well as Typescript declarations. It has been a nightmare getting this running in my TS environment!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions