Skip to content

Commit

Permalink
I9995 (pkp#356)
Browse files Browse the repository at this point in the history
* pkp/pkp-lib#9995 Prevent VueDraggable in FieldOptions to cause wierd issue when it should be disabled

* pkp/pkp-lib#9995 for some reason :is requires component name, and component object does not work
  • Loading branch information
jardakotesovec authored Jun 13, 2024
1 parent 8807079 commit 12f65a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/Form/fields/FieldOptions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
v-html="description"
/>
<div class="pkpFormField__control">
<VueDraggable
<!-- avoid creating VueDraggable when not necessary as it was causing random problems with multiple VueDraggables in the form -->
<component
:is="isOrderable ? 'VueDraggable' : 'div'"
ref="el"
v-model="localizedOptions"
:disabled="!isOrderable"
Expand Down Expand Up @@ -92,7 +94,7 @@
@down="optionOrderDown"
/>
</label>
</VueDraggable>
</component>
<multilingual-progress
v-if="isMultilingual && locales.length > 1"
:id="multilingualProgressId"
Expand Down

0 comments on commit 12f65a9

Please sign in to comment.