molla2005b Posted January 3, 2022 Share Posted January 3, 2022 hi, we have problem with onChange event of All edit fields OnChange Fired when Enter an EditBox by Tab or SetFocus , for first time only plz any temporal solution thnaks OnChangeFired.rar Link to comment Share on other sites More sharing options...
Sherzod Posted January 3, 2022 Share Posted January 3, 2022 1 hour ago, molla2005b said: OnChangeFired.rar 6.41 kB · 0 downloads Hello, In general, it is more correct for you to use the OnEnter event. Link to comment Share on other sites More sharing options...
molla2005b Posted January 3, 2022 Author Share Posted January 3, 2022 we use onChange for Units Calculation , we need to call onChange only when the user typing in EditBox now it fire when tab or focus in Edit. Link to comment Share on other sites More sharing options...
Sherzod Posted January 3, 2022 Share Posted January 3, 2022 3 minutes ago, molla2005b said: we use onChange for Units Calculation , we need to call onChange only when the user typing in EditBox Yes you are right. Please open the request in the support portal. Link to comment Share on other sites More sharing options...
Roberto Nicchi Posted January 4, 2022 Share Posted January 4, 2022 I think it's the same problem i have reported some time ago: Link to comment Share on other sites More sharing options...
Sherzod Posted January 5, 2022 Share Posted January 5, 2022 On 1/4/2022 at 2:01 AM, molla2005b said: OnChange Fired when Enter an EditBox by Tab or SetFocus , for first time only plz any temporal solution 20 hours ago, Roberto Nicchi said: I think it's the same problem i have reported some time ago: Can you test this solution, for example: UniFormattedNumberEdit.ClientEvents.UniEvents -> function beforeInit(sender, config) { config.listeners = { change: function(field, newVal, oldVal) { if (newVal != oldVal) { try { return !(parseFloat(oldVal.toString().replaceAll(Ext.util.Format.decimalSeparator, '.')) == newVal) } catch (err) {} } } } } Link to comment Share on other sites More sharing options...
molla2005b Posted January 7, 2022 Author Share Posted January 7, 2022 On 1/5/2022 at 10:16 AM, Sherzod said: Can you test this solution, for example: UniFormattedNumberEdit.ClientEvents.UniEvents -> function beforeInit(sender, config) { config.listeners = { change: function(field, newVal, oldVal) { if (newVal != oldVal) { try { return !(parseFloat(oldVal.toString().replaceAll(Ext.util.Format.decimalSeparator, '.')) == newVal) } catch (err) {} } } } } thanks a lot. it's work Link to comment Share on other sites More sharing options...
PS1 Posted February 14 Share Posted February 14 Is this problem solved in new updates ? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now