아코디언 UI에서 빈 항목에 문제가 있습니다.jQuery 아코디언 UI 빈 항목 문제.
세 섹션이 있습니다.
+ Section 1
+ Section 2 (empty)
+ Section 3
HTML
<div id="accordion">
<h3>Section 1</h3>
<div>content 1</div>
<h3>Section 2 (empty)</h3>
<div></div>
<h3>Section 3</h3>
<div>content 3</div>
</div>
jQuery를
$(function() {
$("#accordion").accordion({
autoHeight: false,
active: false,
collapsible: true,
});
});
예 : http://jsfiddle.net/ty5ZH/
내가 다른 섹션을 클릭 비해 Section 2
온 클릭하면 아코디언을 작동하지 않습니다.
Section 2
을 클릭하면 Section 2
을 다시 클릭하면 다른 섹션을 클릭하면 everythigs가 정상적으로 작동합니다.
jQuery UI 아코디언 버그가 있습니까?
예. 예. 그게 다예요. 고맙습니다. 내 변경 : 자동으로 비어있는 항목을 선택하여 사용 중지합니다. http://jsfiddle.net/ty5ZH/5/ – kubedan