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
Code:
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;
me.callParent([Ext.apply({
trackResetOnLoad: true
}, config)]);
me.getForm().on('dirtychange', me.onDirtyChangeHandler, me);
me.saveBtn = me.down('#savebtn');
me.undoBtn = me.down('#undobtn');
},
onDirtyChangeHandler: function(form, dirty) {
this.saveBtn.setDisabled(!dirty);
this.undoBtn.setDisabled(!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?