Jump to content

OnChange Fired when Enter Edit by Tab , for first time


molla2005b

Recommended Posts

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

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

  • 2 years later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...