SampaioLeal / material-ui-numeric-input

Numeric Input for interfaces built with Material-UI for React
12 stars 4 forks source link

I need empty value #6

Closed gfigueroaalmera closed 2 years ago

gfigueroaalmera commented 3 years ago

I this moment when put "" to add 0.

SampaioLeal commented 3 years ago

I'm working on a new way to show the input value without other libs Some people want to show some zeros based on precision: Value 0; Precision 2; Input "0,00" And you want to show empty input

What you think about a prop with a name like enableEmpty that handles empty string values?

gfigueroaalmera commented 3 years ago

Yeah it is a good idea

SampaioLeal commented 3 years ago

Nice, so i believe i can achieve this at next week :) so busy these days

gfigueroaalmera commented 3 years ago

Ok thank you, I will analize and could be create Pull request

SampaioLeal commented 3 years ago

Can you test v3.0.1?

SampaioLeal commented 3 years ago

I'm using null as empty value cause i think that mix string and number could be a bad idea

gfigueroaalmera commented 3 years ago

I realized to pr checking, the lib you is using has allowEmpty

gfigueroaalmera commented 3 years ago

I didn't see the new update

SampaioLeal commented 3 years ago

https://github.com/SampaioLeal/material-ui-numeric-input/tree/v3.0.1

gfigueroaalmera commented 3 years ago

Yeah but I need the field validate required

gfigueroaalmera commented 3 years ago

I want select and delete and empty chain

SampaioLeal commented 3 years ago

Yeah but I need the field validate required

you can check if the value is different of null

gfigueroaalmera commented 3 years ago

I understood thank you very much