PDA

View Full Version : Ext.Msg.prompt() is Not Editable when multiLine is true or number



soros
5 Apr 2011, 6:28 AM
Hi,

When you change the example from an API documentation to allow multiLine input, a dialog box becomes none-editable (release 1.1.0).



Ext.Msg.prompt(
'Welcome!',
'What\'s your name going to be today?',
function(value){
console.log(value)
},
null,
true, // false, default (single line)
null,
{ autocapitalize : true, placeholder : 'First-name please...' }
);

soros
5 Apr 2011, 7:08 AM
Correction: it works on iPhone 4, but it does not work in the Chrome and Safari browsers.

I've been doing development and initial testing using the Chrome 11.0.696.28 and Safari 5.0.4 and dialog box is not editable, but when I tried with iPhone 4 it worked.

bled
19 May 2011, 1:38 AM
I was having the same problem yesterday.
Obviously the generated textarea gets the property maxlength="0". This happens as long as you don't explicitly define another value in the promptConfig.

So, as a workaround, you have to supply a value for maxlength within the config, like this:

Ext.Msg.prompt(
'Welcome!',
'What\'s your name going to be today?',
function(value){
console.log(value)
},
null,
true, // false, default (single line)
null,
{ autocapitalize : true, placeholder : 'First-name please...', maxlength: 1000 }
);