taiga-ui
taiga-ui copied to clipboard
🚀 - InputDateRange months position customization
Description
Problem description
I need my InputDateRange to be configurable so that I can choose whether I want future month to be positioned on the right from my active month OR previous month to be positioned on the left.
By the default the [defaultViewedMonth]
prop controls positions of the months inside component's view, but once the month becomes active e.g. some range is picked by default, the active month stays on the left and future - on the right.
July on the left, August on the right
What I need is to be like this
June is on the left, selected range in July on the right
Proposed solution
I would propose optional prop called [showPrevMonthByDefault] to be responsible for showing prev month if there's already range picked