mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-18 05:23:49 +00:00
Fixed date time picker arrow getting placed on the very edge of the popper
This commit is contained in:
@@ -17,6 +17,12 @@ export const DateInput = (props: DateInputProps) => {
|
|||||||
<div className="date-input-container">
|
<div className="date-input-container">
|
||||||
<DatePicker
|
<DatePicker
|
||||||
{...props}
|
{...props}
|
||||||
|
popperModifiers={[
|
||||||
|
{
|
||||||
|
name: 'arrow',
|
||||||
|
options: { padding: 24 }, // This prevents the arrow to be placed on the very edge, which looks ugly
|
||||||
|
},
|
||||||
|
]}
|
||||||
dateFormat="yyyy-MM-dd"
|
dateFormat="yyyy-MM-dd"
|
||||||
className={classNames('date-input-container__input form-control', className)}
|
className={classNames('date-input-container__input form-control', className)}
|
||||||
// @ts-expect-error The DatePicker type definition is wrong. It has a ref prop
|
// @ts-expect-error The DatePicker type definition is wrong. It has a ref prop
|
||||||
|
|||||||
Reference in New Issue
Block a user