mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-19 05:26:47 +00:00
cee496c469
On the phone place form, pasting a "lat, lng" pair into the latitude field filled both coordinates, but a later search pick whose place came without a position emptied them again whenever an earlier pick had filled them. On the desktop the pasted position stays. Cause: the phone's paste handler wrote lat and lng with setForm directly, so autoFilledRef still listed them as written by the previous pick, and mergeResult clears such fields when the new pick says nothing about them. The desktop goes through handleChange, which marks a field as typed by hand. Fix: the phone's paste handler goes through handleChange for both halves, the same as the desktop dialog. Red test: tests/unit/mobile/trip/MPlaceEditSheet.test.tsx FE-MOB-PLEDIT-047 failed on the unfixed code with "expect(element).toHaveValue(35.7101) Expected the element to have value: 35.7101 Received: (empty)". No existing assertions changed.