mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 22:17:19 +00:00
fix(ui): prevent floating dropdown Alpine scope errors (#11311)
This commit is contained in:
1 parent
4c22919d38
commit
9729e765b4
6 files changed
+140
-136
No files matched your search
@@ -43,11 +43,14 @@ test('portaled listboxes center in the mobile viewport', function () {
|
||||
$html = Blade::render('<x-forms.listbox id="region" :options="[]" :wire="false" />');
|
||||
|
||||
expect($html)
|
||||
->toContain('window.innerWidth < 768')
|
||||
->toContain('(window.innerWidth - panelWidth) / 2')
|
||||
->toContain('panel.style.width = `${panelWidth}px`')
|
||||
->toContain('panel.style.maxWidth = `${window.innerWidth - (edge * 2)}px`')
|
||||
->toContain('floatingDropdown(')
|
||||
->not->toContain('x-teleport="body"')
|
||||
->toContain("align: 'left'")
|
||||
->toContain('matchTriggerWidth: true')
|
||||
->toContain('x-show="open"')
|
||||
->toContain('schedulePosition($el)')
|
||||
->toContain("visibility: positioned ? 'visible' : 'hidden'")
|
||||
->not->toContain('positionPanel(panel = null)')
|
||||
->not->toContain('x-show="open && positioned"');
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user