Select: configurable order for clear button and right section #9138
Replies: 1 comment
|
Hi Libor, There is no prop for this yet, but you can flip the order with CSS — no need to give up When both the clear button and <div data-position="right" class="mantine-Input-section">
<div data-combined-clear-section style="display: flex; gap: 2px; align-items: center">
<button>×</button>
<span>kg</span>
</div>
</div>Neither Option 1 –
|
Uh oh!
There was an error while loading. Please reload this page.
Hello,
the clearSectionMode setting in the Select component makes both the right section and the clear button visible, but it doesn't allow specifying the order in which they are rendered. Currently, the clear button is rendered first, followed by the right section.
We use Selects to display physical quantities, with the unit shown in the right section. When clearable is enabled, the clear button appears between the quantity value and its unit, which doesn't look good.
Would it be possible to add an option to control the order of the clear button and the right section when both are enabled?
Regards,
Libor
All reactions