forked from MapComplete/MapComplete
Use addCallbackAndRunD where applicable, which deletes many if(value==undefined) checks
This commit is contained in:
parent
d7e421efc9
commit
6576ac36cc
5 changed files with 6 additions and 18 deletions
|
@ -23,10 +23,7 @@ export default class SimpleDatePicker extends InputElement<string> {
|
|||
}
|
||||
|
||||
|
||||
this.value.addCallbackAndRun(v => {
|
||||
if(v === undefined){
|
||||
return;
|
||||
}
|
||||
this.value.addCallbackAndRunD(v => {
|
||||
el.value = v;
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue