Cannot set/keep empty value for number column
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 214
- Forks
- 52
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 82
Description
Steps to reproduce
- Create a table and add a number column with default configuration
- Create a row, in the modal just click save (leave the input field for the column value unchanged empty). The cell is empty.
- Edit the row, in the modal just click save (leave the input field for the column value unchanged empty). The cell value unexpectedly shows "0.00" (zero)
- Edit the cell, delete the value, press enter. The cell shows "0.00"
Expected behavior
Proper support for empty values. When leaving the value empty (unchanged) it should not be forced to "0" but remain unset. Deleting the value should make it unset. Also, prefixes and suffixes for empty values should not be shown.
Actual behavior
Values can only be empty upon initial creation or through import. Any change to a row turns an empty number value unexpectedly into a zero "0.00". Also, prefixes and suffixes for empty values are not hidden.
Tables app version
2.3.0
Browser
Firefox 155
Client operating system
Win11
Operating system
Ubuntu
Web server
Apache
PHP engine version
PHP 8.3
Database
MariaDB
Additional info
Nextcloud Hub 26 Spring (34.0.3)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the number-column flow described in the issue: create an empty value, edit and save the row, then delete the value and press Enter. Trace how empty number values are handled during row edits and cell rendering, including prefix and suffix display. Done means empty values remain unset after edits and prefixes or suffixes are hidden for them.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100