IE 11中的输入范围和ngForm始终为空。
我们有样本表格,我们有ngForm,它在chrome中工作正常,但输入范围控制返回始终为null,无法获取所选范围的值。
预期/期望的行为 应返回IE 11输入范围的值
Demo plunker:http://plnkr.co/edit/owcvOZj99gUMB65TZXMx?p=preview
Angular版本:** 2.0.0-beta.17
`import { Component } from '@angular/core';
import { FORM_DIRECTIVES } from '@angular/common';
http://plnkr.co/edit/owcvOZj99gUMB65TZXMx?p=preview
@Component({
selector: 'my-app',
directives: [FORM_DIRECTIVES],
template: `
<div class="ui raised segment">
<h2 class="ui header">Demo Form</h2>
<form #f="ngForm"
(ngSubmit)="onSubmit(f.value)"
class="ui form">
<div class="field">
<label for="input0">Number</label>
<input type="text"
id="input0"
placeholder="Number"
ngControl="number0">
</div>
<div class="field">
<label for="inputRange0">Range</label>
<input type="range"
id="inputRange0"
placeholder="Range"
ngControl="range0">
</div>
<label>{{f.skuRange}}</label>
<button type="submit" class="ui button">Submit</button>
</form>
</div>
`
})
export class App {
onSubmit(form: any): void {
console.log(form);
console.log('you submitted value:', form);
}
}
`
浏览器:[IE 11]
语言:[TypeScript:版本1.8.10]