Я получаю неперехваченного TypeError: Невозможно вызвать метод «фокус» неопределенного
происходит, когдаСенч Touch 2:
Ext.Msg.prompt with #myinput closed and then opened **again**.
Ext.getCmp('myinput').focus(); works fine for the first time only. How to set the cursor into `myinput` always?
Он работает в первый раз окно сообщения открыто только.
Обновление: ниже мой основной код.
Ext.Msg.prompt('',
'Some text description',
function(btn, text) {
},
this,
false,
null,
{ placeHolder: 'Please enter some text here', xtype: 'numberfield', id: 'myinput' }
);
Ext.getCmp('myinput').focus();
спасибо. Я обновил свой вопрос, добавив свой код. – Haradzieniec