Skip to content

Commit

Permalink
pkp/pkp-lib#10904 Stop screen bouncing while entering affiliations
Browse files Browse the repository at this point in the history
  • Loading branch information
GaziYucel committed Feb 10, 2025
1 parent 68e6e34 commit 2513415
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/Form/fields/Autosuggest.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
isLoading
"
class="autosuggest__results-container autosuggest__results"
:class="props.isFixedHeight ? 'h-[20rem] overflow-auto' : ''"
>
<ComboboxOption
v-if="isLoading"
Expand Down Expand Up @@ -166,6 +167,11 @@ const props = defineProps({
inputId: {type: String, required: false, default: null},
/** aria-describedby ids */
describedBy: {type: String, required: false, default: ''},
/** If set, the results container will have a scrollable fixed height */
isFixedHeight: {
type: Boolean,
default: false,
},
});
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
>
<Autosuggest
v-bind="autoSuggestProps"
:is-fixed-height="true"
@update:input-value="updateInputValue"
@select-suggestion="handleSelect"
@deselect="handleDeselect"
Expand Down

0 comments on commit 2513415

Please sign in to comment.