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

Preserve the position of the caret while editing a textarea or input[type=text] #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ympbyc
Copy link

@ympbyc ympbyc commented Jun 26, 2013

Hi,

I came across an undesirable behavior when working with textareas. The problem is that whenever a character is typed in, the caret always moves to the end of the field.

This patch fixes the problem by modifying the webfui.plugin.form-values plugin. The code is a bit ugly due to the restriction of plugin facility. Let me know If you know a better way to do it and I'll fix it right away.

I created an example project so that you can see the fix in action. To do this, please checkout my branch https://github.com/ympbyc/webfui/tree/textareaplugin , run the server, and navigate your browser to localhost:8080/textarea.

Cheers!

Minori Yamashita

@ympbyc
Copy link
Author

ympbyc commented Jul 21, 2013

Sorry I accidentally closed this. Reopening...

@ympbyc ympbyc reopened this Jul 21, 2013
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.

None yet

1 participant