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

The application breaks when the last character is deleted #449

Open
bxlt1k opened this issue Jul 21, 2022 · 3 comments
Open

The application breaks when the last character is deleted #449

bxlt1k opened this issue Jul 21, 2022 · 3 comments

Comments

@bxlt1k
Copy link

bxlt1k commented Jul 21, 2022

There are emojioneArea with the following parameters

emojioneArea({
    pickerPosition: "bottom",
    filtersPosition: "bottom",
    tonesStyle: "square",
    autocomplete: false,
    attributes: {
        spellcheck: true,
        autocomplete: "on"
    }
});

In all browsers with the Google Chrome engine, there is such an error, if you delete the last character from textarea, the application freezes, but if you remove attributes, there is no such error. There are two scenarios of operation, when the setup opens and textarea initialization occurs immediately, this scenario works correctly and the second, when initialization occurs in the settings when adding a block with textarea, an error appears, the error may be related to initialization?

@carpii
Copy link
Contributor

carpii commented Jul 21, 2022

Can you reproduce it in jsfiddle?

https://jsfiddle.net/by5tvgej/

@bxlt1k
Copy link
Author

bxlt1k commented Jul 25, 2022

@carpii I found a problem, along with the initialization of textarea, I initialize select2(), but I can't figure out what the reason is(

@bxlt1k
Copy link
Author

bxlt1k commented Aug 1, 2022

@carpii @mervick
https://jsfiddle.net/rudbp8qw/3/
If you remove all the symbols, the application breaks, however, if you remove the attributes everything works.
In Google Chrome it breaks, in Firefox it works correctly

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