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
I was trying to add the ngx-drag-to-select surrounding an ngTemplateOutlet, and for some reason, it doesn't seem to work outside the ng-container. It works if I put it inside the ng-template to a degree, but my ng-template has recursive nesting and I don't want multiple dts-select-containers.
If I do nest and recurse it, it seems that the drag/selection area is the same size even when there are children. For example, if the original outlet contained 3 items, but after a time, those item get children and the divs grow in height, the selection area will have remained the same, and by drawing the box over the very top of the first item and nested children, when the other items used to be (but are now lower on the page) they will become selected as well as if there was nothing in between them.
But back to the original issue - is anyone experiencing this? Has anyone tried to use an ngTemplateOutlet with this library? Example below:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I was trying to add the ngx-drag-to-select surrounding an ngTemplateOutlet, and for some reason, it doesn't seem to work outside the ng-container. It works if I put it inside the ng-template to a degree, but my ng-template has recursive nesting and I don't want multiple dts-select-containers.
If I do nest and recurse it, it seems that the drag/selection area is the same size even when there are children. For example, if the original outlet contained 3 items, but after a time, those item get children and the divs grow in height, the selection area will have remained the same, and by drawing the box over the very top of the first item and nested children, when the other items used to be (but are now lower on the page) they will become selected as well as if there was nothing in between them.
But back to the original issue - is anyone experiencing this? Has anyone tried to use an ngTemplateOutlet with this library? Example below:
Sorry about the indents - It's kind of tricky in this editor
Beta Was this translation helpful? Give feedback.
All reactions