Skip to content

[Bug]: Naming File Version a number removes ability to edit version #45642

@grnd-alt

Description

@grnd-alt

⚠️ This issue respects the following points: ⚠️

Bug description

When naming the version of a file to a number: e.g. 1.0

  1. it gets renamed to 1 after refresh
  2. the version can't be renamed as the input field is not rendered

Console throws:
t.innerversionlabel.trim is not a function
and:
this.$refs.labelInput is not defined

Steps to reproduce

  1. create a file
  2. open sharing side menu
  3. go to versions
  4. click edit version name in three dots menu
  5. insert a float
  6. reload page
  7. try to edit version name

Expected behavior

version name should stay editable
probably 1.0 should not be renamed to 1

Nextcloud Server version

27, 28,29 master

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions