forked from MapComplete/MapComplete
Fix opening panels by uieventsource
This commit is contained in:
parent
855a76ec1e
commit
fbce58bc52
1 changed files with 3 additions and 1 deletions
|
@ -44,8 +44,10 @@ export default class ScrollableFullScreen extends UIElement {
|
||||||
const self = this;
|
const self = this;
|
||||||
isShown.addCallback(isShown => {
|
isShown.addCallback(isShown => {
|
||||||
if (isShown) {
|
if (isShown) {
|
||||||
self.Activate();
|
// We first must set the hash, then activate the panel
|
||||||
|
// If the order is wrong, this will cause the panel to disactivate again
|
||||||
Hash.hash.setData(hashToShow)
|
Hash.hash.setData(hashToShow)
|
||||||
|
self.Activate();
|
||||||
} else {
|
} else {
|
||||||
self.clear();
|
self.clear();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue