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

Placeholder Text is displayed in all tagit fields #18

Open
felixhelix opened this issue Sep 3, 2024 · 0 comments
Open

Placeholder Text is displayed in all tagit fields #18

felixhelix opened this issue Sep 3, 2024 · 0 comments

Comments

@felixhelix
Copy link

felixhelix commented Sep 3, 2024

This applies to the stable-3_3_0 version: Once the ROR plugin template is loaded in the contributor modal, the placeholder text "Search ror.org" is displayed in other taggit fields as well:

grafik

The issue is caused by the jquery selector used in affiliation.tpl ('.tagit-new > input'), which is to unspecific.

A possible solution is in the template file to replace each occurence of

$(tagitInput).attr("placeholder", rorPlaceHolder);

with

$('input[id^="affiliation-"]').parent().children().find("input").attr("placeholder", rorPlaceHolder);

Yours

Felix

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

1 participant