Bootstrap .popover() 'show' & 'destroy' not working properly

后端 未结 6 2141
刺人心
刺人心 2021-02-12 21:44

When I use the bootstrap popover in \'manual\' mode \'destroy\' and \'hide\' not working properly. When I\'m using hide and destroy, popover opacity changing to 0 but its not ch

6条回答
  •  独厮守ぢ
    2021-02-12 22:41

    If you were using a custom build of Bootstrap, the destroy event won't work if you didn't check off "transitions" in the JS section and are testing in a browser that supports transitions. This is because Bootstrap looks at $.support.transition in jQuery. If this value is "truthy", Bootstrap assumes there will be a transitionEnd event of some sort and won't detach the popover until this event is received. But Bootstrap uses custom events defined in their transitions library so the transitionEnd call will never be triggered. If you don't want to re-download the customized library, the transitions code is here: transition code

提交回复
热议问题