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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...