observablehq / inputs

Better input elements
https://observablehq.com/framework/lib/inputs
ISC License
125 stars 34 forks source link

Search: `.query` does not update on input #242

Open mootari opened 1 year ago

mootari commented 1 year ago

The search widget exposes an undocumented query property which is used in the Documentation notebook to set the query terms via JavaScript links.

Unfortunately query will only update when assigned via its setter, but not on user input. Since query also has a getter, it is probably reasonable to expect the value to match the current search input value.

mootari commented 1 year ago

Related: https://github.com/observablehq/inputs/issues/237