File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
src/BootstrapBlazor/Components/Scroll Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 11@namespace BootstrapBlazor.Components
22@inherits BootstrapModuleComponentBase
3- @attribute [BootstrapModuleAutoLoader(AutoInvokeDispose = false)]
3+ @attribute [BootstrapModuleAutoLoader(AutoInvokeInit = false, AutoInvokeDispose = false)]
44
55<div @attributes =" AdditionalAttributes" id =" @Id" class =" @ClassString" style =" @StyleString " >
66 @ChildContent
Original file line number Diff line number Diff line change 1- export function init ( id ) {
2- const el = document . getElementById ( id )
3- if ( el === null ) {
4-
5- }
6- }
7-
8- export function scrollToBottom ( id ) {
1+ export function scrollToBottom ( id ) {
92 const el = document . getElementById ( id ) ;
103 const top = el . scrollHeight ;
114 el . scrollTo ( {
You can’t perform that action at this time.
0 commit comments