You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.
Set up the completer (remote or local) with some data
Start searching (typing) until there are no matches
Press arrow-down (now the 0-index row is selected but that is not visible)
Press enter - selecting the invisible row
I have traced the issue to the ngOnDestroy method of the CtrRow directive.
The IF (this_rowIndex) evaluates to false if rowIndex is 0 or undefined - preventing unregistration of the row.
The temporary fix I have made is very ugly and hacky - on one of the parent components wrapping this: @ViewChildren(CtrRow) set ctrRows(values: QueryList<CtrRow>) { values.forEach((row) => { row.ngOnDestroy = () => { row['dropdown'].unregisterRow(row['_rowIndex']); } }); }
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Reproduction steps:
I have traced the issue to the ngOnDestroy method of the CtrRow directive.
The IF (this_rowIndex) evaluates to false if rowIndex is 0 or undefined - preventing unregistration of the row.
The temporary fix I have made is very ugly and hacky - on one of the parent components wrapping this:
@ViewChildren(CtrRow) set ctrRows(values: QueryList<CtrRow>) { values.forEach((row) => { row.ngOnDestroy = () => { row['dropdown'].unregisterRow(row['_rowIndex']); } }); }
The text was updated successfully, but these errors were encountered: