Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SelectMenu in Modal #806

Closed
Obscure1666 opened this issue Oct 11, 2023 · 3 comments
Closed

SelectMenu in Modal #806

Obscure1666 opened this issue Oct 11, 2023 · 3 comments
Labels
question Further information is requested

Comments

@Obscure1666
Copy link

Description

Hi !
Help me, please, how to correct setup :ui blocks for SelectMenu Option list will be over Modal window, By default its cuted and hided by bottom border.
Thanks!

image

<template>
    <div>TEST PAGE</div>
    <div>
        <UButton label="Open" @click="isOpen = true" />
        <UModal :ui="{ }" v-model="isOpen" >
            <UCard :ui="{ }">
                <template #header>
                <!-- Content -->
                <div>Header</div>
                </template>
                    <!-- Content -->
                    <div class="">
                        <USelectMenu
                            :ui="{ }" 
                            v-model="selected" 
                            :options="people" 
                        />
                    </div>                    
                <template #footer>
                <!-- Content -->
                    <UButton class="mx-1 font-bold">Submit</UButton>
                    <UButton class="mx-1">Cancel</UButton>
                </template>
            </UCard>            
        </UModal>
  </div>    
</template>
@Obscure1666 Obscure1666 added the question Further information is requested label Oct 11, 2023
Copy link
Member

benjamincanac commented Oct 11, 2023

You can either remove the overflow-hidden from the UCard or set the popper.strategy to fixed on the SelectMenu. If you do so, you will also have to set a width on it: <USelectMenu :popper="{ strategy: 'fixed' }" :ui="{ width: 'w-48' }" /> .

@Obscure1666
Copy link
Author

Thanks!
me helps remove overflow-hidden twice: in Modal and Card.

<UModal :ui="{ base: '', width: 'w-96' }" v-model="isOpen" :overlay="true">
            <UCard :ui="{ base: '' }">

image
It`s Cool Lib !!!

Copy link
Member

I've decided to remove the overflow-hidden from the Card by default so you won't have to do this anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants