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

Fire event when JS is initiated #714

Open
adi- opened this issue Dec 8, 2023 · 1 comment
Open

Fire event when JS is initiated #714

adi- opened this issue Dec 8, 2023 · 1 comment

Comments

@adi-
Copy link

adi- commented Dec 8, 2023

When all translation inputs are initiated it would be nice to fire an event. I am manipulating form inputs (setting custom height), but I am having a race condition. My script is run when DOM is loaded, same with django-modeltranslation JS scripts. My manipulation script sometimes can't see those form inputs, because of not finished django-translation scripts.

Any chance to do so?

@last-partizan
Copy link
Collaborator

Sure. Please take a look at JS code and make a PR with this event you need.

I can do code review and merge it.

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