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

luifNumber - default input to zero when undefined #35

Closed
earrouvi opened this issue Oct 13, 2015 · 2 comments
Closed

luifNumber - default input to zero when undefined #35

earrouvi opened this issue Oct 13, 2015 · 2 comments
Labels

Comments

@earrouvi
Copy link

Trying to format an undefined value with luifNumber returns ",undefined" instead of "0".

Possible fix in filter:

if (_input === undefined) {
    _input = 0;
}
lucienbertin added a commit that referenced this issue Oct 13, 2015
…input is undefined, enhanced comportment to always return integralPart<span>separator and decimalPart</span> to allow for selecting decimal part via css selector and appluy custom style, also added support for non numeric inputs
@lucienbertin
Copy link
Contributor

almost ready, some problem with NaN and null that slipped through the cracks.

@lucienbertin
Copy link
Contributor

fixed and updated demo page, enjoy :)

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