2014-11-02 5 views
1
<a href="#" class="btn btn-warning" id="no_mls_entry" tabindex="2" data-toggle="popover" data-trigger="focus" data-placement="left auto" title="Early Bird Gets The Worm" data-content="Sometimes it takes some time for the MLS&reg; RETS pool to update your new listing. Loading it manually early, then sharing on social media will give you better exposure on Google.">Enter Without MLS #</a> 

위의 내용은 클릭시 해제되도록 지시에 따라 data-trigger = "focus"로 설정된 popover HTML 구문입니다. 팝 오버가 확실히 나타부트 스트랩 Popover Dismissable이 작동하지 않습니다.

$('#no_mls_entry').popover('show'); 

, 그러나 그것을 클릭에, 그것은 사라지지 않습니다

그리고 문서에 대한 준비,이를 실행합니다.

답변

2

포커스가 관리되는 방식에 문제가있는 것으로 보입니다. 당신이 표시되지하고자하는 경우, 또는

http://www.bootply.com/J1iTFk9M1Y

:

당신은 초점을 강제로 다음 시도 할 수 있습니다 : 여기

$('#no_mls_entry').popover('show').focus(); 

는 bootply의 코드의 예입니다 popover 페이지로드시 다음 코드로 팝업을로드 할 수 있으며 버튼을 누를 때 트리거됩니다.

$('#no_mls_entry').popover(); 
관련 문제