Closed
Description
Background
// base input component
@Component({
template: require('any.html')
})
export class InputComponent extends Vue {
// ...something doesn't important
@Watch('value')
private valueChange(newVal: string | number, oldVal: string | number) {
this.setCurrentValue(newVal);
}
}
// a mock component for test
@Component({
template: require('any.html'),
})
class MockComponent extends InputComponent {
constructor() {
super();
}
}
How
Work very well, but have a bit weird. The MockInputComponent have two duplicate content,
caused his watcher to be triggered twice.
Am I doing something wrong?