Browse Source

fixed bug when mithril renders the AddLocationComponent only once

main
Youen Toupin 3 years ago
parent
commit
cd4fdfe9a0
  1. 2
      js/dist/forum.js
  2. 2
      js/dist/forum.js.map
  3. 4
      js/src/forum/components/AddLocationComponent.js

2
js/dist/forum.js vendored

File diff suppressed because one or more lines are too long

2
js/dist/forum.js.map vendored

File diff suppressed because one or more lines are too long

4
js/src/forum/components/AddLocationComponent.js

@ -59,6 +59,10 @@ export default class AddLocationComponent extends Component {
}
}
oncreate(vnode) {
this.onupdate(vnode);
}
onupdate(vnode) {
let dom = vnode.dom;
let mapElements = dom.getElementsByClassName('location-map');

Loading…
Cancel
Save