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

Bug on Auto Complete #181

Closed
DonWolfram opened this issue May 11, 2023 · 6 comments
Closed

Bug on Auto Complete #181

DonWolfram opened this issue May 11, 2023 · 6 comments
Labels
√ next release is already done and will be part of the next release

Comments

@DonWolfram
Copy link

When using the browsers auto complete functionality on an input, the following bug occurs
in Keystore.js keyup and keydown events:

TypeError: Cannot read properties of undefined (reading 'toLowerCase')

Code Example
https://codepen.io/woelfners-miracles/pen/ExdLpEo

To Reproduce
Steps to reproduce the behavior:

  1. Enter something in the input
  2. Submit the form
  3. (Refresh the page, because of the 404 Error caused by the form action)
  4. Click on the input and select something from the suggestions
  5. Have a look at the console to see the error

Thanks for the help and the great work on Dragselect! Keep it up!

@ThibaultJanBeyer
Copy link
Owner

Thank you DonWolfram, this is an easy fix and I’ll include it in the refactor PR coming soon #174

@scgm11
Copy link

scgm11 commented Jul 31, 2023

any update on this? thanks!

@bedirhangull
Copy link

same problem

@bedirhangull
Copy link

@DonWolfram did you fix this problem?

@bedirhangull
Copy link

bedirhangull commented Aug 5, 2023

I fixed this problem in input element. If you rewrite input element like this:

<input
                readOnly={readOnly}
                onFocus={() => setReadOnly(false)}
                onBlur={() => setReadOnly(true)}
                autoComplete="off"
                autoCorrect="off"
                autoCapitalize="none"
                spellCheck="false"
                name='email'
                onChange={handleChange}
                className="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:shadow-sm w-full p-2.5"
                placeholder="example@domain.com"
                required
              />

it will be fix

@ThibaultJanBeyer ThibaultJanBeyer modified the milestone: v3 Sep 25, 2023
@ThibaultJanBeyer ThibaultJanBeyer added the √ next release is already done and will be part of the next release label Sep 25, 2023
@ThibaultJanBeyer
Copy link
Owner

Will be fixed in v3 which will be out very soon :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
√ next release is already done and will be part of the next release
Projects
None yet
Development

No branches or pull requests

4 participants