Bug 160163 - Text field should reset placeholder if all content is deleted
Summary: Text field should reset placeholder if all content is deleted
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Fields
  Show dependency treegraph
 
Reported: 2024-03-12 09:35 UTC by Gabor Kelemen (allotropia)
Modified: 2024-03-28 14:13 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
The field filled in Word 16 and Writer side by side (118.14 KB, image/png)
2024-03-12 09:35 UTC, Gabor Kelemen (allotropia)
Details
After deleting the fields contents, it is reset in Word but disappears in Writer (123.40 KB, image/png)
2024-03-12 09:36 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2024-03-12 09:35:36 UTC
Created attachment 193073 [details]
The field filled in Word 16 and Writer side by side

This is a followup to bug 150037

When the text field gets its non-default content deleted, Word resets the placeholder, but in Writer, nothing special happens and we are stuck with a practically invisible (it's there, just has 0 width) text field.

1. Open attachment 181299 [details]
2. Type into the field after "TIME SPENT"
3. Backspace until all text is gone
-> placeholder is not reset to the default, unlike in Word

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ff113b34dd6f54765995440cbedd27483fadb844
CPU threads: 15; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: de-DE
Calc: default

works like this since 3.5 at least, even worse before, not a recent regression.
Comment 1 Gabor Kelemen (allotropia) 2024-03-12 09:36:39 UTC
Created attachment 193074 [details]
After deleting the fields contents, it is reset in Word but disappears in Writer
Comment 2 Stéphane Guillou (stragu) 2024-03-28 14:13:54 UTC
Reproduced:

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 2146e66d8df2b7b6a2dd868e886cae76aaf7f48b
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

I agee this would improve the UX.