Fix HtmlLabelElement activation to run on correct element

Also removes old code that caused radio button clicks on disabled elements
This commit is contained in:
Rebecca 2016-03-29 18:48:07 -04:00
parent 183772583f
commit 3c7e6a4be8
2 changed files with 9 additions and 10 deletions

View file

@ -861,10 +861,6 @@ impl VirtualMethods for HTMLInputElement {
}
if event.type_() == atom!("click") && !event.DefaultPrevented() {
if let InputType::InputRadio = self.input_type.get() {
self.update_checked_state(true, true);
}
// TODO: Dispatch events for non activatable inputs
// https://html.spec.whatwg.org/multipage/#common-input-element-events