Small bug fixes

This commit is contained in:
Pieter Vander Vennet 2020-11-24 11:10:43 +01:00
parent 4d2e8b6f24
commit 488fd16873
9 changed files with 51 additions and 14 deletions

View file

@ -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")

View file

@ -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!');