forked from MapComplete/MapComplete
Small bug fixes
This commit is contained in:
parent
4d2e8b6f24
commit
488fd16873
9 changed files with 51 additions and 14 deletions
|
@ -6,6 +6,7 @@ import QuestionBox from "./QuestionBox";
|
|||
import Combine from "../Base/Combine";
|
||||
import TagRenderingAnswer from "./TagRenderingAnswer";
|
||||
import State from "../../State";
|
||||
import {FixedUiElement} from "../Base/FixedUiElement";
|
||||
|
||||
export class FeatureInfoBox extends UIElement {
|
||||
private _tags: UIEventSource<any>;
|
||||
|
@ -46,7 +47,8 @@ export class FeatureInfoBox extends UIElement {
|
|||
.SetClass("featureinfobox-titlebar"),
|
||||
new Combine([
|
||||
...this._renderings,
|
||||
this._questionBox
|
||||
this._questionBox,
|
||||
new FixedUiElement("").SetClass("featureinfobox-tail")
|
||||
]
|
||||
).SetClass("featureinfobox-content"),
|
||||
]).SetClass("featureinfobox")
|
||||
|
|
|
@ -22,7 +22,6 @@ export default class ShareButton extends UIElement{
|
|||
super.InnerUpdate(htmlElement);
|
||||
const self= this;
|
||||
htmlElement.addEventListener('click', () => {
|
||||
alert("URL:" + self._shareData.url)
|
||||
if (navigator.share) {
|
||||
navigator.share(self._shareData).then(() => {
|
||||
console.log('Thanks for sharing!');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue