* Den aktiven Schritt in Sicht holen. * * Als ref-Rueckruf und nicht als Effekt, weil er an genau dem einen Element * haengt, das ihn braucht. `nearest`, damit eine Liste, die den Schritt schon * zeigt, nicht unter dem Auge des Lesers springt.
(node: HTMLLIElement | null)
| 750 | * zeigt, nicht unter dem Auge des Lesers springt. |
| 751 | */ |
| 752 | function scrollIntoView(node: HTMLLIElement | null): void { |
| 753 | // jsdom kennt scrollIntoView nicht, und das ist kein Grund, es dort |
| 754 | // unterzuschieben. |
| 755 | if (typeof node?.scrollIntoView === 'function') { |
| 756 | node.scrollIntoView({ block: 'nearest' }); |
| 757 | } |
| 758 | } |
nothing calls this directly
no outgoing calls
no test coverage detected