diff --git a/ccp/js/inputwidgetcontroller.js b/ccp/js/inputwidgetcontroller.js index b4d7d69..9509c57 100644 --- a/ccp/js/inputwidgetcontroller.js +++ b/ccp/js/inputwidgetcontroller.js @@ -888,7 +888,7 @@ class CCPGeoInputWidgetController extends CCPBaseInputWidgetController { ev.preventDefault() ev.stopPropagation() } - }) + }) document.addEventListener("keydown", ev=>{ if (ev.ctrlKey && ev.key === 'z') { @@ -933,8 +933,16 @@ class CCPGeoInputWidgetController extends CCPBaseInputWidgetController { ev.preventDefault() ev.stopPropagation() }) + + this.rootdoc.addEventListener("input", ev=>{ + if(ev.getAttribute("name") === this.name && this.getAttribute("data-index")){ + const index = Number(this.getAttribute("data-index")) + this.value[index] = ev.target.value + } + }) } + init(){ this.#widget = this.rootdoc.querySelector("div[name=map]") this.#draw = null