Q-tooltip does not go away on mobile until you scroll



  • q-tooltip should disappear when tapping anywhere outside of it, but on mobile (both cordova and safari) tapping will bring it up, but only scrolling will dismiss it. Tooltip should also dismiss when clicking anywhere outside of it (or even perhaps on it). Is there a workaround for this?



  • Anyone have a solution for this? Is this a bug or am I doing something wrong?



  • is it possible to set a timeout so it goes away on its own?



  • hm, inside of quasar.esm.js I found this:

    close: function close () {
          clearTimeout(this.timer);
          if (this.opened) {
            this.opened = false;
            this.scrollTarget.removeEventListener('scroll', this.close);
            window.removeEventListener('resize', this.__debouncedUpdatePosition);
            document.body.removeChild(this.$el);
            if (Platform.is.mobile) {
              document.body.removeEventListener('click', this.close, true);
            }
          }
        }
    

    which would SEEM to indicate that it should be closing on mobile on a click, correct?


Log in to reply
 

Looks like your connection to Quasar Framework was lost, please wait while we try to reconnect.