cocos-engine
cocos-engine copied to clipboard
cc.Label in inspector misses or incorrectly records typed characters (v3.4.x)
Cocos Creator version
3.4.0, 3.4.2
System information
macOS Monterey v12.2.1, Macbook Pro 2.6 GHz, 16GB DDR4
Issue description
cc.Label in inspector misses or incorrectly records typed characters (v3.4.x)
Expected behaviour Typing out "Hello I am typing a sentence and it misses some characters sometimes in the box" appears as typed
Actual behaviour String appeared as "Hello, am typing a sentnce and it misses some characters sometimes i te ox." instead (typed characters do not appear in the edit box)
Extra notes
- Fairly inconsistent and random.
- Sometimes the cursor jumps around instead of just missing a character, and the typed character appears in the wrong place in the string.
- Not sure if it is related to the speed of typing. Faster typing does appear to exacerbate the problem more, indicating it could be related to some kind of update / performance issue. But it can also occur with slower typing, backspacing then typing, etc.
- Found across multiple specs of development machine on the team fairly consistently.
Relevant error log output
No response
Steps to reproduce
- Create a new scene
- Create a node with a cc.Label in the scene
- Replace Label string with a long one (e.g. "Hello I am typing a sentence and it misses some characters sometimes in the box")
Expected behaviour Label text should read: "Hello I am typing a sentence and it misses some characters sometimes in the box"
Result Label text reads: "Hello, am typing a sentnce and it misses some characters sometimes i te ox."
Minimal reproduction project
not urgent, put it into v3.6.1