Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User Daniil's Avatar
    Join Date
    Jun 2010
    Location
    Saint-Petersburg, Russia
    Posts
    972
    Vote Rating
    105
    Daniil is a glorious beacon of light Daniil is a glorious beacon of light Daniil is a glorious beacon of light Daniil is a glorious beacon of light Daniil is a glorious beacon of light Daniil is a glorious beacon of light

      0  

    Default [4.2.0] A number field subtracts or adds 1 from its value (odd only) on blur

    [4.2.0] A number field subtracts or adds 1 from its value (odd only) on blur


    REQUIRED INFORMATION

    Ext version tested:
    • Ext 4.2.0
    Browser versions tested against:
    • IE9
    • Chrome
    • FireFox
    DOCTYPE tested against:
    • <!DOCTYPE html>
    Description:
    • A number field subtracts or adds 1 from its value (odd only) on blur. It is, probably, related to JavaScript, but is there any chance to get it fixed?
    Steps to reproduce the problem:
    • Copy/paste 9433381100915133 to the NumberField
    • Blur
    The result that was expected:
    • The value does not change
    The result that occurs instead:
    • Subtracts 1 => 9433381100915132
    Test Case:

    Code:
    <!DOCTYPE html>
    <html>
    <head>
        <title>A number field subtracts or adds 1 from its value (odd only) on blur</title>
    
        <link rel="stylesheet" href="../resources/css/ext-all.css" />
        
        <script src="../ext-all-debug.js"></script>
    
        <script>
            Ext.onReady(function () {
                Ext.create("Ext.form.field.Number", {
                    renderTo: Ext.getBody()     
                });
            });
        </script>
    </head>
    <body>
    
    </body>
    </html>
    Ext.NET - ASP.NET for Ext JS
    MVC and WebForms
    Examples | Twitter

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,115
    Vote Rating
    507
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    It's the behaviour of parseFloat:

    Code:
    console.log(parseFloat('9433381100915133'));
    The only real solution would be to implement some kind of BigNumber library.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Sencha User Daniil's Avatar
    Join Date
    Jun 2010
    Location
    Saint-Petersburg, Russia
    Posts
    972
    Vote Rating
    105
    Daniil is a glorious beacon of light Daniil is a glorious beacon of light Daniil is a glorious beacon of light Daniil is a glorious beacon of light Daniil is a glorious beacon of light Daniil is a glorious beacon of light

      0  

    Default


    Could you implement, please? Just kidding.

    Thank you for the answer.
    Ext.NET - ASP.NET for Ext JS
    MVC and WebForms
    Examples | Twitter

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar