-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Description
Describe the bug
withFloating hard-codes a 10px offset to make space for the arrow, which is not removed if showPopperArrow is false. code reference
Overriding this offset then requires a hack per issue #4564
EDIT: or you can pass a negative offset to counteract it, like this:
<DatePicker
{...otherProps}
popperModifiers={[offset(-10)]}
showPopperArrow={false}
/>
To Reproduce
Steps to reproduce the behavior:
- pass
showPopperArrow={false} - click the input to open the calendar
- calendar is still offset
Expected behavior
If it doesn't have an arrow, it shouldn't be offset.
Metadata
Metadata
Assignees
Labels
No labels