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

Fixing JS admin widget to properly update the field value #162

Merged
merged 1 commit into from
Mar 2, 2017

Conversation

andrewhayes1979
Copy link
Contributor

Currently, copy/paste/cut/undo events are ignored by the admin widget, it fails to update the internal field-value...saving means any copy-n-pasted text is lost (unless you also manually typed somewhere in the field too).

Only manual typing (via keyup events) works currently

This fix makes all input-changing events update the internal state of the field.

Tested in Chrome & Firefox...this is recommended as the standard cross-browser way to handle all these events.

…aste/cut/undo events occur in any text-input, in addition to manually typing (keyup events etc.)
@nemesifier
Copy link
Member

@andrewhayes1979 thank you. Please also see #161.

@nemesifier nemesifier merged commit aac755f into djangonauts:master Mar 2, 2017
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

Successfully merging this pull request may close these issues.

2 participants