Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
erp5 erp5
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 136
    • Merge requests 136
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • erp5erp5
  • Merge requests
  • !1371

Merged
Created Mar 02, 2021 by Gabriel Monnerat@gabrielDeveloper

Fix issue with floating point and deferErrorText erasing input value

  • Overview 11
  • Commits 4
  • Pipelines 3
  • Changes 14

Test Results

Initial information about how to reproduce the error with FloatFied

1. Create a Foo object and access his "View"
2. If you are using a browser in English, type "1-". If you are in French language, please type "1.1".
3. The value will disappear.
4. If you type again the same thing, it does not disappear and you can save

Technical information

When the new gadget state error_text is modified, onChangeState is called as expected. But this function does not check in detail which state parameters were modified, and it rewrite the full DOM element. ea219b74

ea219b74 This also set the value to an empty string, as from the browser point of view, what the user types was not valid.

Edited Mar 02, 2021 by Gabriel Monnerat
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: fix_value_disappearing
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7