-
Notifications
You must be signed in to change notification settings - Fork 452
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
Autocomplete inputs (e.g. OMP 3.1.2 Add spotlight feature) are broken #4575
Comments
These javascript warnings appear when I open the Add Spotlight form: First a warning:
and then an actual error:
|
I can fix this by editing However, I still get the Not that size is deprecated and length should be used instead. |
I think |
ah ok, so you can not call |
The root cause is the "jLabel" jQueryUI plugin, which is unmaintained and needs replacement/removal. |
The jLabel plugin was only used to provide a "Start Typing" label behind the text field for autocomplete inputs. Personally I don't think it added anything important so I flat-out removed it. PRs:
These can be cherry-picked back to @NateWr, any objections? Mind taking a quick look at the PRs? (Will port to OMP when it's ready -- but it's trivial, so no PR just yet.) |
No objections. PR looks good. 👍 |
pkp/pkp-lib#4575 Remove label behind autocomplete input
Merged and ported to |
If I try to add a new Spotlight item, the autocomplete title search does now work.
I have added one title to the press. Searching for that title gives me two matches.

If I proceed to choose the "Test title" the value entered to the field is a mysterious

1:3
. Saving the form then gives me an error "An item is required.".The text was updated successfully, but these errors were encountered: