mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Fixed amount off dropdown selector position during validation error (#19176)
fixes ADM-29
This commit is contained in:
parent
9a6d71884b
commit
e33fe08469
1 changed files with 5 additions and 5 deletions
|
@ -187,18 +187,18 @@ const Sidebar: React.FC<SidebarProps> = ({tierOptions,
|
||||||
error={Boolean(errors.amount)}
|
error={Boolean(errors.amount)}
|
||||||
hint={errors.amount}
|
hint={errors.amount}
|
||||||
title='Amount off'
|
title='Amount off'
|
||||||
type='number'
|
type='number'
|
||||||
value={
|
value={
|
||||||
overrides.type === 'fixed'
|
overrides.type === 'fixed'
|
||||||
? (overrides.fixedAmount === 0 ? '' : overrides.fixedAmount?.toString())
|
? (overrides.fixedAmount === 0 ? '' : overrides.fixedAmount?.toString())
|
||||||
: (overrides.percentAmount === 0 ? '' : overrides.percentAmount?.toString())
|
: (overrides.percentAmount === 0 ? '' : overrides.percentAmount?.toString())
|
||||||
}
|
}
|
||||||
onBlur={validate}
|
onBlur={validate}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
handleAmountInput(e);
|
handleAmountInput(e);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<div className='absolute bottom-0 right-1.5 z-10'>
|
<div className='absolute right-1.5 top-6 z-10'>
|
||||||
<Select
|
<Select
|
||||||
clearBg={true}
|
clearBg={true}
|
||||||
controlClasses={{menu: 'w-20 right-0'}}
|
controlClasses={{menu: 'w-20 right-0'}}
|
||||||
|
|
Loading…
Add table
Reference in a new issue