gristlabs / grist-core

Grist is the evolution of spreadsheets.
https://www.getgrist.com
Apache License 2.0
7.27k stars 322 forks source link

Integer Column Type should not show 'Decimals' setting #1268

Open computrav opened 1 month ago

computrav commented 1 month ago

Describe the current behavior

If you change the Column Type for a column to 'Integer', the 'Decimals' configuration controls (min/max decimal places) still shows. This makes no sense since the number type is an Integer which by definition has no decimal points. The decimal controls should only show for Column Type 'Numeric'

Steps to reproduce

  1. Go to a table, or create a new one
  2. Open right sidebar
  3. Change Column Type to 'Integer'

Describe the expected behavior

The 'Decimals' controls (min/max decimal places) should not show.

Where have you encountered this bug?

Instance information (when self-hosting only)