Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'get' returns wrong value when the value has a trailing negative sign #319

Closed
BobKnothe opened this issue Dec 29, 2016 · 2 comments
Closed
Assignees
Labels
Milestone

Comments

@BobKnothe
Copy link
Member

BobKnothe commented Dec 29, 2016

With the following:
{ digitGroupSeparator: '.', decimalCharacter: ',', decimalCharacterAlternative: '.', currencySymbol: '\u00a0€', currencySymbolPlacement: 's', roundingMethod: 'U', negativePositiveSignPlacement: 'l' }

and the value '10,09- €'
the 'get' method return '10.09'

@BobKnothe
Copy link
Member Author

BobKnothe commented Dec 29, 2016

When the value is an empty string '' the get method return '0.00'.

It should return and empty string '' unless settings.emptyInputBehavior='zero'

@AlexandreBonneau AlexandreBonneau added this to the 2.0 milestone Dec 29, 2016
BobKnothe added a commit that referenced this issue Jan 3, 2017
+ Fix issue #317 allow jumping over the decimal character when the caret
is just left of the decimal character and the user enters the decimal
character
+ Fix issue #319 so the 'get' method returns a negative value
when there is a trailing negative sign.
+ Fix issue #327 so the entire
content is selected when tabbing in.
@BobKnothe
Copy link
Member Author

Fixed the 'get' method returns a negative value when there is a trailing minus sign in version "2.0.0-beta.17"

AlexandreBonneau added a commit that referenced this issue Jan 4, 2017
Update the tests following the changes made by the issue #319 fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants