@eturnity/eturnity_reusable_components 9.13.2 → 9.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "9.13.2",
3
+ "version": "9.13.3",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -892,6 +892,11 @@
892
892
  document.removeEventListener('click', this.clickOutside)
893
893
  },
894
894
  methods: {
895
+ getDropdownTopScrollYOffset() {
896
+ return this.shouldUseTeleport || this.isFixedDropdownPosition
897
+ ? 0
898
+ : window.scrollY
899
+ },
895
900
  focus() {
896
901
  this.isActive = true
897
902
  },
@@ -1006,7 +1011,7 @@
1006
1011
  const dropdownHeight = this.$refs.dropdown.$el.clientHeight
1007
1012
  const dropdownWrapperRelativeHeight =
1008
1013
  dropdownWrapperEl.getBoundingClientRect().top +
1009
- window.scrollY +
1014
+ this.getDropdownTopScrollYOffset() +
1010
1015
  DROPDOWN_HEIGHT_OFFSET
1011
1016
 
1012
1017
  const top =
@@ -1099,7 +1104,8 @@
1099
1104
  const selectRef = this.$refs.select
1100
1105
  if (selectRef) {
1101
1106
  const currentTopPosition =
1102
- selectRef.$el.getBoundingClientRect().top + window.scrollY
1107
+ selectRef.$el.getBoundingClientRect().top +
1108
+ this.getDropdownTopScrollYOffset()
1103
1109
  if (this.selectTopPosition !== currentTopPosition) {
1104
1110
  this.selectTopPosition = currentTopPosition
1105
1111
  }