open-nomie / nomie6-oss

Opensource version of Nomie 6
MIT License
510 stars 60 forks source link

The note input field get empty when you navigate throgh menu #37

Closed edil-it-them closed 1 year ago

edil-it-them commented 1 year ago

When I make notes and navigate through menu, for example clicking on Timeline, Dashboard, Goals, Track, etc the input note disappears until you click on it. Steps to reproduce: 1) make a note, click on a tracker 2) click on any menu navigation tab 3) click again on note input(What's up field)

image image image

Expected behavior: The note should stay visible as it is

donalmacanri commented 1 year ago

Interesting ... this is not really a problem on mobile because you can't navigate between Track, Timeline, Dashboard, etc. without either saving or cancelling. I think on Desktop, we either need to let the note stay visible as you suggest, or give the user a warning if they are navigating to a different tab and confirm to proceed.

edil-it-them commented 1 year ago

Sometimes I need to navigate to dashboards, trackers and timeline when I journal so I can view previous inputs or charts. So I'd love to keep it visible. The problem might be when the input textfield component is created. The note text probably is stored in stores but the component initializes empty string on text field. But when you focus on it its bringing value from the store. Didn't yet looked in the codebase but the solution might be just simple let inputText = $ActiveLogStore.note || ''

edil-it-them commented 1 year ago

Closed via #44