feat: Replace this.$refs.refName as Vue with InstanceType<T> (no-changelog) (#6050)
* refactor: use InstanceType<T> for all this.$refs types * refactor: update refs type in N8nSelect * fix: remove inputRef non-null assertion Co-authored-by: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com> * fix: remove non-null assertion --------- Co-authored-by: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com>
This commit is contained in:
@@ -76,12 +76,12 @@ export default mixins(genericHelpers).extend({
|
||||
},
|
||||
methods: {
|
||||
onScroll() {
|
||||
const el = this.$refs.loader;
|
||||
if (!el || this.loading) {
|
||||
const loaderRef = this.$refs.loader as HTMLElement | undefined;
|
||||
if (!loaderRef || this.loading) {
|
||||
return;
|
||||
}
|
||||
|
||||
const rect = (el as Element).getBoundingClientRect();
|
||||
const rect = loaderRef.getBoundingClientRect();
|
||||
const inView =
|
||||
rect.top >= 0 &&
|
||||
rect.left >= 0 &&
|
||||
|
||||
Reference in New Issue
Block a user