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

Repeater dropdown z-index in modal #6430

Closed
wamesro opened this issue Jun 20, 2024 · 0 comments
Closed

Repeater dropdown z-index in modal #6430

wamesro opened this issue Jun 20, 2024 · 0 comments
Assignees
Labels

Comments

@wamesro
Copy link

wamesro commented Jun 20, 2024

  • Laravel Version: 10.48.13
  • Nova Version: 4.34.3
  • PHP Version: 8.3.8
  • Operating System and Version: MacOS
  • Browser type and version: Chrome

Description:

When using multiple repeatables, a dropdown with options should appear.

Repeater::make(__('customer.field.addresses'), 'addresses')
    ->repeatables([
        CustomerAddressRepeater::make(__('customer.field.address'), 'address'),
        CustomerCompanyAddressRepeater::make(__('customer.field.company_address'), 'address'),
    ]),

It will show up fine in the resource.
Snímka obrazovky 2024-06-20 o 12 13 12

But in the modal window when using via BelongsTo::showCreateRelationButton() is hidden under the modal window.

BelongsTo::make(__('order.field.customer'), 'customer', Customer::class)
    ->showCreateRelationButton(),
<div id="nova-ui-dropdown-menu-6" aria-labelledby="nova-ui-dropdown-button-5" tabindex="0" class="relative z-[50]" data-menu-open="true" dusk="dropdown-menu" style="position: absolute; left: 0px; top: 0px; transform: translate(869px, 446px);">
    <div class="select-none overflow-hidden bg-white dark:bg-gray-900 shadow-lg rounded-lg border border-gray-200 dark:border-gray-700 py-1 component-dropdown-menu" style="width: 120px;">
        <button class="space-x-2 block w-full text-left px-3 focus:outline-none rounded truncate whitespace-nowrap text-sm py-1.5 hover:bg-gray-50 dark:hover:bg-gray-800 focus:ring cursor-pointer text-gray-500 active:text-gray-600 dark:text-gray-500 dark:hover:text-gray-400 dark:active:text-gray-600 component-dropdown-menu-item" type="button">
            <span><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" width="20" height="20" class="inline-block component-heroicons-solid-menu component-icon" role="presentation"><path fill-rule="evenodd" d="M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z" clip-rule="evenodd"></path></svg></span>
            <span>Osoba</span>
        </button>
        <button class="space-x-2 block w-full text-left px-3 focus:outline-none rounded truncate whitespace-nowrap text-sm py-1.5 hover:bg-gray-50 dark:hover:bg-gray-800 focus:ring cursor-pointer text-gray-500 active:text-gray-600 dark:text-gray-500 dark:hover:text-gray-400 dark:active:text-gray-600 component-dropdown-menu-item" type="button">
            <span><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" width="20" height="20" class="inline-block component-heroicons-solid-menu component-icon" role="presentation"><path fill-rule="evenodd" d="M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z" clip-rule="evenodd"></path></svg></span>
            <span>Firma</span>
        </button>
    </div>
</div>

div contains class z-[50] which adds z-index: 50; and in this case it works z-index: 100;

@crynobone crynobone added the pending Issues that are pending triage label Jul 7, 2024
@crynobone crynobone added fix incoming A fix is in review and removed pending Issues that are pending triage labels Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants