nextcloud / nextcloud/tables

Number fields: weird keyboard behaviour and values don't save

Open
#1,166 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage bug
Dominant language
JavaScript
Stars
214
Forks
52
Avg merge
1d 10h
Merged PRs (30d)
82

Description

Steps to reproduce
  1. Create a table with a number field with 2 decimal places, no maximum and mandatory. Bug appears to be triggered by maximum field being blank.
  2. Click Create row. When you type into the number field, the first digit is always 0 regardless of the number typed.
  3. Click Save. The resulting row has no value in the number field.
  4. Editing a row with data and saving it looses the data.
Expected behavior

Number value should be stored as typed.

Actual behavior

Number fields are always blank, and the input field always shows 0 for the first digit.

Tables app version

0.7.3

Browser

Firefox 127.0.1

Client operating system

Linux

Operating system

Alma Linux

Web server

Other

PHP engine version

PHP 8.1

Database

MySQL

Additional info

In my test, the row also had a link to a contact. When creating the row, the contact is saved. If I edit the row, make no changes, and click save, the contact is also lost.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in the Tables app using a mandatory number field with two decimal places and a blank maximum, then trace the number-field create/edit and row-save entry points. Check the Firefox behavior and the linked-contact case; done means typed number values and existing linked data survive creation and unchanged edits.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.