grist-core icon indicating copy to clipboard operation
grist-core copied to clipboard

Integer Column Type should not show 'Decimals' setting

Open computrav opened this issue 4 months ago • 0 comments

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)

  • Grist instance:

    • Version: 1.2.0
    • URL (if it's OK for you to share it):
    • Installation mode: docker/kubernetes/... docker
    • Architecture: single-worker/multi-workers
  • Browser name, version and platforms on which you could reproduce the bug: Brave

  • Link to browser console log if relevant:

  • Link to server log if relevant:

computrav avatar Oct 16 '24 08:10 computrav