UdaraJay / Pile

Desktop app for digital journaling.
https://udara.io/pile
MIT License
1.9k stars 104 forks source link

when you scroll down or explore through the entries, the input clears #48

Open meh-didi opened 9 months ago

meh-didi commented 9 months ago

Expected Behavior

when you scroll down or explore through the entries, the input clears

Current Behavior

when scrolling down or exploring through entries, the input should not clear

Steps to Reproduce

  1. start writing a new entry

  2. scroll down until you no longer see the input field

shubhammantri1 commented 9 months ago

Hi @meh-didi, I would like to give it a try. I am able to reproduced the issue. Can you please assign this bug to me.

meh-didi commented 9 months ago

Hi @meh-didi, I would like to give it a try. I am able to reproduced the issue. Can you please assign this bug to me.

@shubhammantri1 I don't have the rights, we should ask @UdaraJay 😁

UdaraJay commented 9 months ago

the reason for this is the virtualized timeline- it removes the entry if you scroll too far away from it.

ideal fix is to keep track of the entry in focus (store index) within TimelineContext and use that to pin the entry to the top. it might be doable via virtuoso, otherwise likely more complicated.

shubhammantri1 commented 8 months ago

Hi @UdaraJay , Can you please my PR once for this issue.