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

Make text input relayout when value is changed directly. #5318

Merged
merged 2 commits into from Mar 24, 2015
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

Make text input relayout when value is changed directly

  • Loading branch information
gw3583 committed Mar 22, 2015
commit 0db6f857ada7dade4c99e4c28584c636cefce808
@@ -259,6 +259,7 @@ impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> {
fn SetValue(self, value: DOMString) {
self.textinput.borrow_mut().set_content(value);
self.value_changed.set(true);
self.force_relayout();
}

// https://html.spec.whatwg.org/multipage/forms.html#dom-input-defaultvalue
@@ -427,6 +428,7 @@ impl<'a> HTMLInputElementHelpers for JSRef<'a, HTMLInputElement> {

self.SetValue(self.DefaultValue());
self.value_changed.set(false);
self.force_relayout();
}
}

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.