InputNumber - showClear icon not showing when value is "0" #13525
Labels
LTS-PORTABLE
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
Describe the feature you would like to see added
Show clear icon in InputNumber when [showIcon] flag is set.
Is your feature request related to a problem?
A very problematic issue is that the InputNumber doesn't display the clear value icon when the value is 0, treating it as false.
Describe the solution you'd like
https://github.com/primefaces/primeng/blob/5acdd3454eccb17e89d8c71c017cdf9d62a93e5b/src/app/components/inputnumber/inputnumber.ts#L88C50-L88C50
Solution is simple - change condition in that line to:
buttonLayout != 'vertical' && showClear && (value || value === 0)
Describe alternatives you have considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: