View Full Version : textareafield 'dirtychange' event issue with ie

26 Dec 2012, 2:06 PM
Having a weird problem in IE only (Chrome and FF are not affected)... when I have an xtype textareafield on a form, and I use loadRecord to display a record onto the form, and the textareafield has a carriage return in the data, the dirtychange event is fubar'd. It causes the onDirtyChangeHandler below to be fired with dirty=true even though no change at all has been made to the data... it was simply loaded onto the form

Ext.define('MyApp.view.ContactEdit', {
extend: 'Ext.form.Panel',
alias: 'widget.contactedit',

frame: false,
bodyPadding: 5,
closable: false,
autoScroll: true,

constructor: function(config) {
var me = this;

trackResetOnLoad: true
}, config)]);

me.getForm().on('dirtychange', me.onDirtyChangeHandler, me);

me.saveBtn = me.down('#savebtn');
me.undoBtn = me.down('#undobtn');

onDirtyChangeHandler: function(form, dirty) {

When there is no CR in the data field, everything works fine. I can't believe that I am the only one who has experienced this issue... is there something I should know about how IE handles textareafields?

28 Dec 2012, 8:55 AM
The text before has the return in it also? What Ext JS 4.x.x are you using?

28 Dec 2012, 11:37 AM
Yes, the text has the CR in it all along.

Sencha version is 4.1.1, compiled with Sencha Cmd