Skip to content

Commit

Permalink
Fix multiselect overflow
Browse files Browse the repository at this point in the history
Formatter
  • Loading branch information
monsieurswag committed Jul 10, 2024
1 parent 95a5dd5 commit 0620a1b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
{/each}
</div>
{/if}
<div class="control" data-testid="form-input-{field.replaceAll('_', '-')}">
<div class="control overflow-x-clip" data-testid="form-input-{field.replaceAll('_', '-')}">
<input type="hidden" name={field} value={$value ? $value : ''} />
{#if options.length > 0}
<MultiSelect
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/lib/components/Forms/Form.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
function handleFormUpdated({ form, closeModal }: { form: any; closeModal: boolean }) {
if (form.valid) {
onUpdated(form);
if (closeModal)
$modalStore[0] ? modalStore.close() : null;
if (closeModal) $modalStore[0] ? modalStore.close() : null;
}
}
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/lib/utils/stores.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ export const createModalCache = {
}
},
setModelName(urlModelFromPage: string) {
if (this._urlModel !== urlModelFromPage)
this.clear();
if (this._urlModel !== urlModelFromPage) this.clear();
this._urlModel = urlModelFromPage;
},
data: {}
Expand Down

0 comments on commit 0620a1b

Please sign in to comment.