스크롤에 사라집니다. 그러나 브라우저 창을 스크롤 할 때 datepicker의 팝업이 사라집니다. 또한 github에이 문제를 만들었지 만 아직 답변을 얻지 못했습니다. 누구든지 이걸 도와 줄 수 있니?부트 스트랩 날짜 선택기 팝업 나는 현재 내가 날짜를 표시하고 위치를 날짜 선택기 팝업이 열립니다 입력 필드를 클릭에 <a href="http://www.eyecon.ro/bootstrap-datepicker/" rel="nofollow"><strong>eyecon.ro</strong></a></p> <p>에서 다운로드 부트 스트랩 날짜 선택기를 사용하고있는 윈도우
0
A
답변
0
Windows에서 아무 위치 나 클릭하면 "onblur"이벤트가 발생하므로 버그가 아닙니다. 그렇지 않으면 onblur에 대한 이벤트를 수정하여 datepicker 창을 '숨기지'않습니다.
편집 : 좋아, 날짜 선택기 프로토 타입에 부트 스트랩 - datepicker.JS에이 수정 (라인 88) 만들기 : 난 그냥에 대한 트리거 아래 '스크롤'에 대한 트리거를 포함
show: function(e) {
this.picker.show();
this.height = this.component ? this.component.outerHeight() : this.element.outerHeight();
this.place();
var t = this;
$(window).on('resize', $.proxy(this.place, this));
$(window).on("scroll", this.place, function() {
t.show();
});
if (e) {
e.stopPropagation();
e.preventDefault();
}
if (!this.isInput) {
}
var that = this;
$(document).on('mousedown', function(ev){
if ($(ev.target).closest('.datepicker').length == 0) {
that.hide();
}
});
this.element.trigger({
type: 'show',
date: this.date
});
},
을 'rezise'(여기 6 번 줄).