Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions frontend/src/basic/form/Help.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

<script>
import LoadIcon from "@/basic/Icon.vue";
import { Tooltip } from "bootstrap";

/**
* Show help icon with tooltip if help is provided.
Expand All @@ -42,12 +43,23 @@ export default {
default: null,
},
},
mounted() {
//new Tooltip(this.$refs.tooltip, {trigger: "click"});
}
}

mounted() {
if (!this.$refs.tooltip) return;

this.tooltipInstance = new Tooltip(this.$refs.tooltip, {
trigger: "hover focus",
delay: 0,
});
},

beforeUnmount() {
this.tooltipInstance?.dispose();
},
};
</script>


<style scoped>

</style>
Loading