Repository navigation
fix: allow clearing date property values - #13337
Merged
Merged
Conversation
tiensonqin
force-pushed
the
logseq/fix-date-property-clear-81e2
branch
from
September 21, 2026 09:35
7def16c to
a7f0cde
Compare
Date pickers mounted the trash control on react-day-picker's removed Head slot, so a set date could not be cleared without deleting the property. Render the control in footer and write empty-placeholder so the property stays on the node. Co-authored-by: Tienson Qin <[email protected]>
Move the empty-placeholder persistence cases into src/test so bb dev:test compiles and runs them. Co-authored-by: Tienson Qin <[email protected]>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
tiensonqin
force-pushed
the
logseq/fix-date-property-clear-81e2
branch
from
September 21, 2026 10:05
8a0faf7 to
0536e12
Compare
Closed
1 of 2 tasks
devin-ai-integration Bot
added a commit
that referenced
this pull request
Oct 1, 2026
* fix: allow clearing date property values Date pickers mounted the trash control on react-day-picker's removed Head slot, so a set date could not be cleared without deleting the property. Render the control in footer and write empty-placeholder so the property stays on the node. Co-authored-by: Tienson Qin <[email protected]> * test: run date-property clear coverage in the app test build Move the empty-placeholder persistence cases into src/test so bb dev:test compiles and runs them. Co-authored-by: Tienson Qin <[email protected]> * fix: align date picker delete button with nav buttons Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
devin-ai-integration Bot
added a commit
that referenced
this pull request
Oct 8, 2026
* fix: allow clearing date property values Date pickers mounted the trash control on react-day-picker's removed Head slot, so a set date could not be cleared without deleting the property. Render the control in footer and write empty-placeholder so the property stays on the node. Co-authored-by: Tienson Qin <[email protected]> * test: run date-property clear coverage in the app test build Move the empty-placeholder persistence cases into src/test so bb dev:test compiles and runs them. Co-authored-by: Tienson Qin <[email protected]> * fix: align date picker delete button with nav buttons Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
devin-ai-integration Bot
added a commit
that referenced
this pull request
Oct 8, 2026
* fix: allow clearing date property values Date pickers mounted the trash control on react-day-picker's removed Head slot, so a set date could not be cleared without deleting the property. Render the control in footer and write empty-placeholder so the property stays on the node. Co-authored-by: Tienson Qin <[email protected]> * test: run date-property clear coverage in the app test build Move the empty-placeholder persistence cases into src/test so bb dev:test compiles and runs them. Co-authored-by: Tienson Qin <[email protected]> * fix: align date picker delete button with nav buttons Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes logseq/db-test#1245
Date type properties could not be reset to empty while staying on the node. The picker already passed
del-btn?, but the trash control was mounted on react-day-picker's removed v8Headslot, so it never rendered. Backspace also removed the whole property.This change:
footerslot so it appears in the calendarempty-placeholderinstead of retracting the attributeTests cover the picker trash markup, the clear-vs-remove key path, and outliner persistence of an empty date/datetime property. Related namespaces
frontend.components.datepicker-test,frontend.components.property.value-test, andlogseq.outliner.date-property-testpass (55 tests, 134 assertions).