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
|
@ -59,7 +59,7 @@ export default class DirectionInput extends InputElement<string> {
|
|||
.ConstructElement()
|
||||
|
||||
|
||||
this.value.addCallbackAndRun(rotation => {
|
||||
this.value.addCallbackAndRunD(rotation => {
|
||||
const cone = element.getElementsByClassName("direction-svg")[0] as HTMLElement
|
||||
cone.style.transform = `rotate(${rotation}deg)`;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue