observablehq / inputs

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

Inputs.table skips null values even with custom format callback #251

Open mootari opened 1 year ago

mootari commented 1 year ago

In the following example

Inputs.table([{foo: 1, bar: null}], {
  format: {bar: JSON.stringify}
})

the format callback is never called, making it impossible to apply custom formatting to nullish values.

Please note that this issue is only concerned with the behavior when a custom format callback is provided. For changes to the default formatter see #164.