Bug 160163

Summary: Text field should reset placeholder if all content is deleted
Product: LibreOffice Reporter: Gabor Kelemen (allotropia) <kelemeng>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: enhancement CC: aron.budea, oliver.specht, stephane.guillou
Priority: medium    
Version: 3.5.0 release   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=150037
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 107739    
Attachments: The field filled in Word 16 and Writer side by side
After deleting the fields contents, it is reset in Word but disappears in Writer

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.