0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Fixed amount off dropdown selector position during validation error (#19176)

fixes ADM-29
This commit is contained in:
Sodbileg Gansukh 2023-11-29 22:29:13 +08:00 committed by GitHub
parent 9a6d71884b
commit e33fe08469
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -187,18 +187,18 @@ const Sidebar: React.FC<SidebarProps> = ({tierOptions,
error={Boolean(errors.amount)}
hint={errors.amount}
title='Amount off'
type='number'
type='number'
value={
overrides.type === 'fixed'
? (overrides.fixedAmount === 0 ? '' : overrides.fixedAmount?.toString())
overrides.type === 'fixed'
? (overrides.fixedAmount === 0 ? '' : overrides.fixedAmount?.toString())
: (overrides.percentAmount === 0 ? '' : overrides.percentAmount?.toString())
}
onBlur={validate}
onBlur={validate}
onChange={(e) => {
handleAmountInput(e);
}}
/>
<div className='absolute bottom-0 right-1.5 z-10'>
<div className='absolute right-1.5 top-6 z-10'>
<Select
clearBg={true}
controlClasses={{menu: 'w-20 right-0'}}