How to modify bootstrap PopOver support mouse move to pop-up layer does not hide the popup layer

Source: Internet
Author: User

1 set the delay, more than the delay is not moved into the pop-up window, pop-up window hidden

Tooltip.prototype.init = function{in the

var triggers = This.options.trigger.split (") is added after

Set Delay if (this.options.trigger.indexOf (' hover ') >-1) {$.extend (True, this.options, {delay: {hide:100}});}

  

2 control does not disappear code

In Tooltip.prototype.enter = function (obj) {The

Cleartimeout (Self.timeout) after joining

if (self.options.trigger.indexOf (' hover ') >-1) {self        . $tip. Unbind (' MouseEnter '). Bind (' MouseEnter ', function (e) {self            . $tip. Data (' data-element ', self. $element);//PopOver box can get ID            cleartimeout (self.timeout) when the click event is triggered;            Self.hoverstate = ' in ';        }). Unbind (' MouseLeave '). Bind (' MouseLeave ', function (e) {            self.hoverstate = ' out ';            Self.timeout = SetTimeout (function () {                if (self.hoverstate = = ' out ') self.hide ()            }, Self.options.delay.hide) c9/>})    }

Bootstrap version: v3.3.6

How to modify bootstrap PopOver support mouse move to pop-up layer does not hide the popup layer

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.