mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #3809 - The esm builds throw an exception due to optional chaining
This commit is contained in:
parent
ad6b71074a
commit
a526e8f1b5
2 changed files with 2 additions and 2 deletions
|
@ -231,7 +231,7 @@ export default {
|
|||
},
|
||||
scrollTo(options) {
|
||||
this.lastScrollPos = this.both ? { top: 0, left: 0 } : 0;
|
||||
this.element?.scrollTo(options);
|
||||
this.element && this.element.scrollTo(options);
|
||||
},
|
||||
scrollToIndex(index, behavior = 'auto') {
|
||||
const both = this.isBoth();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue