fix(ui): keep listbox panel width after live refresh

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Andras Bacsai
2026-10-24 14:07:02 +02:00
co-authored by Claude Opus 5.5
parent 091fdf1ebe
commit e4c1e1a6b3
@@ -216,7 +216,14 @@
);
// Kept in state for the :style binding, because a Livewire morph resets the inline style.
this.panelPosition = { top: `${top}px`, left: `${left}px`, width: `${panelWidth}px` };
// minWidth and maxWidth too: a fixed panel resolves the CSS min-width: 100% against the viewport.
this.panelPosition = {
top: `${top}px`,
left: `${left}px`,
width: `${panelWidth}px`,
minWidth: panel.style.minWidth,
maxWidth: panel.style.maxWidth,
};
this.positioned = true;
},
}" x-modelable="value" :class="{ 'pointer-events-none opacity-70': saving }"