Skip to main content
GoodFirstPicks
DashboardIssuesReposLeaderboard

GoodFirstPicks by Leaveitblank © 2026

CreatorRequest a RepoPrivacy PolicyTerms of Service
Corrupt four-digit number formatting in forms | GoodFirstPicks

Corrupt four-digit number formatting in forms

sveltejs/svelte 4 comments 1mo ago
View on GitHub
highopenScope: somewhat clearSkill match: maybeSvelteTypeScript

Why this is a good first issue

Complex reactivity issue involving HMR and derived state causing performance degradation.

AI Summary

The issue describes a performance problem where HMR triggers infinite re-renders when using $derived with dynamic components. The workaround suggests this involves deep reactivity system behavior. The problem requires understanding Svelte's reactivity model and HMR integration, making it complex to diagnose and fix.

Issue Description

Description of the issue

If you write a four-digit number, which does not end in zero (1005, 1568, 5896, etc.) and press ENTER, it's converted in the correct format, but when you press the mouse out of the field (focus out), it drops the last 3 digits so for 2456 it becomes "2" and for 1456 it becomes "1", it is also sent when creating/saving a document, making it impossible to put numbers with those characteristics.

Context information (for bug reports)

This started to happen without any changes, I updated to the latest version and it's still the same.

Output of bench version

erpnext 13.34.2
frappe 13.34.0

Steps to reproduce the issue

  1. In a number field (like item qty in invoice) write: 1005
  2. Click outside the field

Observed result

The number gets converted to: 1 msedge_3ae4px451G

Expected result

The number gets converted to: 1.005

GitHub Labels

bug

Want to work on this?

Claim this issue to let others know you're working on it. You'll earn 10 points when you complete it!

Risk Flags

  • HMR interaction
  • reactivity system
  • performance impact
Loading labels...

Details

Points10 pts
Difficultyhigh
Scopesomewhat clear
Skill Matchmaybe
Test Focusedno