protected override void OnInit() { // notify dropdown that the button is inside of it ParentDropdown?.Register(this); base.OnInit(); }
protected override void OnInitialized() { // notify dropdown that the button is inside of it ParentDropdown?.Register(this); ExecuteAfterRender(async() => { await JSRunner.InitializeButton(ElementId, ElementRef, PreventDefaultOnSubmit); }); base.OnInitialized(); }