observablehq / framework

A static site generator for data apps, dashboards, reports, and more. Observable Framework combines JavaScript on the front-end for interactive graphics with any language on the back-end for data analysis.
https://observablehq.com/framework/
ISC License
2.52k stars 121 forks source link

User interaction with one `Input` overwrites another `Input` #1090

Closed jaanli closed 7 months ago

jaanli commented 7 months ago

Not sure what to file this under (please feel free to move to discussions):

When a user selects something in one Observable Framework Input (e.g. the select below):

image

And then interacts with another Input (e.g. the range slider), then that overwrites the previously-selected value.

Code:

https://github.com/jaanli/american-community-survey/blob/main/docs/new-york-area.md

This is likely due to me being new to javascript and Claude 3 Opus not being trained on Observable Framework docs (trying to copy and paste all of them slowly).

I'm also not sure how to describe this: is the issue linkage between multiple inputs so that previously-selected inputs preserve their value upon new user interaction?

jaanli commented 7 months ago

Think I figured this one out! This was a data issue, because the selections were changing the underlying data when they shouldn't have (upon user input).