@pocketprep/ui-kit 3.4.15 → 3.4.16

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.
@@ -822,8 +822,11 @@ export default class Question extends Vue {
822
822
  && this.swipeStart.x !== null
823
823
  && Math.abs(swipeEnd.x - this.swipeStart.x) > 80
824
824
  ) {
825
- const choiceEls = this.$refs.choices as HTMLElement[]
826
- const parent = choiceEls.find(choiceEl => choiceEl.contains(targetEl))
825
+ const choicesContainerComp = this.$refs[
826
+ 'uikit-question__choices-container'
827
+ ] as ComponentPublicInstance | undefined
828
+ const choiceEls = choicesContainerComp?.$refs.choices as HTMLElement[] | undefined
829
+ const parent = choiceEls?.find(choiceEl => choiceEl.contains(targetEl))
827
830
  const finalElement = document.elementFromPoint(swipeEnd.x, swipeEnd.y)
828
831
  if (parent?.contains(finalElement)) {
829
832
  this.clickChoiceStrike(choiceKey)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/ui-kit",
3
- "version": "3.4.15",
3
+ "version": "3.4.16",
4
4
  "description": "Pocket Prep UI Kit",
5
5
  "author": "pocketprep",
6
6
  "scripts": {