-
26 Dec 2012 2:06 PM #1
Unanswered: textareafield 'dirtychange' event issue with ie
Unanswered: textareafield 'dirtychange' event issue with ie
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
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?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); },
-
28 Dec 2012 8:55 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
- Answers
- 3156
The text before has the return in it also? What Ext JS 4.x.x are you using?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
28 Dec 2012 11:37 AM #3
Yes, the text has the CR in it all along.
Sencha version is 4.1.1, compiled with Sencha Cmd 3.0.0.250


Reply With Quote