Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ If *validate* is not defined, [*number*.checkValidity](https://html.spec.whatwg.

The *format* function should return a string value that is compatible with native number parsing. Hence, the default [formatTrim](#formatTrim) is recommended.

If a *transform* function is specified, an inverse transform function *invert* is strongly recommended. If *invert* is not provided, the Range will fallback to Newton’s method, but this may be slow or inaccurate. Passing Math.sqrt, Math.log, or Math.exp as a *transform* will automatically supply the corresponding *invert*. If *min* is greater than *max*, *i.e.* if the extent is inverted, then *transform* and *invert* will default to `(value) => -value`.
If a *transform* function is specified, an inverse transform function *invert* is strongly recommended. If *invert* is not provided, the Range will fall back to Newton’s method, but this may be slow or inaccurate. Passing Math.sqrt, Math.log, or Math.exp as a *transform* will automatically supply the corresponding *invert*. If *min* is greater than *max*, *i.e.* if the extent is inverted, then *transform* and *invert* will default to `(value) => -value`.

#### Inputs.number([*extent*, ]*options*)

Expand Down Expand Up @@ -524,7 +524,7 @@ If the *template* object is not specified, the given inputs are wrapped in a DIV

[Source](./src/bind.js) · [Notebook](https://observablehq.com/@observablehq/synchronized-inputs) · The bind function allows a *target* input to be bound to a *source* input, synchronizing the two: interaction with the *source* input will propagate to the *target* input and *vice versa*.

The relationship between *target* and *source* is not symmetric: the *target* input should be considered a dependant of the *source* input, and if desired, only the *source* should be declared an Observable view.
The relationship between *target* and *source* is not symmetric: the *target* input should be considered a dependent of the *source* input, and if desired, only the *source* should be declared an Observable view.

When the *target* emits a type-appropriate event, the *target*’s type-appropriate value will be applied to the *source* and a type-appropriate event will be dispatched on the *source*; when the *source* emits a type-appropriate event, the *source*’s type-appropriate value will be applied to the *target*, but *no event will be dispatched*, avoiding an infinite loop.

Expand Down
2 changes: 1 addition & 1 deletion src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ form.__ns__-toggle > label {
margin-right: var(--length2);
}

/* Since toggles won’t wrap on narrow screens, collpase to content. */
/* Since toggles won’t wrap on narrow screens, collapse to content. */
form.__ns__-toggle > label,
form.__ns__-toggle .__ns__-input {
width: initial;
Expand Down
2 changes: 1 addition & 1 deletion src/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ function initialize(
const check = inputof(theadr);
if (check == null) return;
check.disabled = !multiple && !selected.size;
check.indeterminate = multiple && selected.size && selected.size !== N; // assume materalized!
check.indeterminate = multiple && selected.size && selected.size !== N; // assume materialized!
check.checked = selected.size;
value = undefined; // lazily computed
}
Expand Down
Loading