細かいところ、
ほとんどの場合、私はそのような問題を読みました。多くの場合、イベントが正しくないことが原因です。何かにフォーカスを設定するようシステムに要求する前に、ページが処理されていることを確認してください。
これは、イベント pageshow が pagebeforeshow よりも適切な場所である例です。
このようには機能しません
/**
*** a hook to handle list drawing. DOES NOT WORK**
*/
$(document).delegate('#dropdownPopupWindow', "pagebeforeshow", function() {
console.log(UIPopup.TAG+"pagebeforeshow on popup dropdownPopupWindow is setting focus on field field_dropdown_label");
$('#field_dropdown_label').focus();
});
このような作業
/**
*** a hook to handle list drawing.**
*/
$(document).delegate('#dropdownPopupWindow', "pageshow", function() {
console.log(UIPopup.TAG+"pageshow on popup dropdownPopupWindow is setting focus on field field_dropdown_label");
$('#field_dropdown_label').focus();
});