Tooltip sticking

I too looked into this and I believe it largely stems from the default trigger for BS5 tootltips being ‘hover focus’ and the focus not being removed before changing view. If that means the element that triggers the tooltip is no longer visible, you can’t get rid of it.

Looking at the dmxBootstrap5Tooltips.js file, it seems that there is no provision for changing the trigger behaviour when altering the option in the UI. Also when selecting ‘hover’ it simply removes the dmx-bs-trigger attribute rather than explicitly setting it to hover so you end up with the default ‘hover focus’ value.

I think this element of the BS5 implementation can probably be improved (once focus shifts away from W4.0 Electron implementation), but in the meantime I altered the file’s mounted event to and it seems to work well. I do need to manually add dmx-bs-trigger="hover focus" if I want the element to use that value otherwise it defaults to ‘hover’ and reacts to whatever is selected in the UI :

dmx.Attribute('bs-tooltip', 'mounted', function (node, attr) {
  var texpression = node.getAttribute('dmx-bs-trigger') || '';
  var dmxtrigger = dmx.parse(texpression) || node.getAttribute('data-bs-trigger') || 'hover';
  this.$addBinding(attr.value, function (value) {
    new bootstrap.Tooltip(node, {
      placement: function (node) {
        var pexpression = node.getAttribute('dmx-bs-placement') || '';
        return dmx.parse(pexpression) || this._element.getAttribute('data-bs-placement') || 'auto';
      },
      title: function () {
        var expression = this.getAttribute('dmx-bs-tooltip') || '';
        return dmx.parse(expression) || this.getAttribute('tooltip-title') || this.getAttribute('title') || '';
      },
      trigger: dmxtrigger
    });

    node.setAttribute('tooltip-title', value || '');
  });
});

I hope it helps.
(No guarantees offered, and these changes will likely be overwritten with updates)