Ask for advice: ng-zorro drawer when the first error, and then press the open button, you can open, closed after the same need to press twice?

first of all, thank you for browsing.
button opens a drawer, runtime error with the following error on the first keystroke:

NewApplicationComponent.html:1 ERROR TypeError: Cannot read property "overlayElement" of undefined

at NzDrawerComponent.push../node_modules/ng-zorro-antd/fesm5/ng-zorro-antd.js.NzDrawerComponent.trapFocus (ng-zorro-antd.js:18330)
at NzDrawerComponent.push../node_modules/ng-zorro-antd/fesm5/ng-zorro-antd.js.NzDrawerComponent.ngOnChanges (ng-zorro-antd.js:18149)
at checkAndUpdateDirectiveInline (core.js:9239)
at checkAndUpdateNodeInline (core.js:10507)
at checkAndUpdateNode (core.js:10469)
at debugCheckAndUpdateNode (core.js:11102)
at debugCheckDirectivesFn (core.js:11062)
at Object.eval [as updateDirectives] (NewApplicationComponent.html:1)
at Object.debugUpdateDirectives [as updateDirectives] (core.js:11054)
at checkAndUpdateView (core.js:10451)
button

drawer

Aug.11,2021

has been resolved. The button and drawer must be in the same component, and only drawer can be used to include other components. If the component is started by button, it will make an error if drawer is included in the component. The reason is unknown.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eae7cd-21d8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eae7cd-21d8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?