Skip to content

Commit

Permalink
fix(ui-date-input): call callRenderProp on Renderable prop
Browse files Browse the repository at this point in the history
  • Loading branch information
szalonna committed Dec 9, 2024
1 parent 0ae3943 commit 24334c7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/ui-date-input/src/DateInput2/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {
} from '@instructure/ui-icons'
import { Popover } from '@instructure/ui-popover'
import { TextInput } from '@instructure/ui-text-input'
import { passthroughProps } from '@instructure/ui-react-utils'
import { callRenderProp, passthroughProps } from '@instructure/ui-react-utils'

import { ApplyLocaleContext, Locale } from '@instructure/ui-i18n'
import { jsx } from '@instructure/emotion'
Expand Down Expand Up @@ -299,7 +299,11 @@ const DateInput2 = ({
shape="circle"
interaction={interaction}
>
{renderCalendarIcon ?? <IconCalendarMonthLine />}
{renderCalendarIcon ? (
callRenderProp(renderCalendarIcon)
) : (
<IconCalendarMonthLine />
)}
</IconButton>
}
isShowingContent={showPopover}
Expand Down

0 comments on commit 24334c7

Please sign in to comment.