taiga-ui icon indicating copy to clipboard operation
taiga-ui copied to clipboard

🚀 - InputDateRange months position customization

Open redisotschek opened this issue 6 months ago • 2 comments

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 image

What I need is to be like this

June is on the left, selected range in July on the right image

Proposed solution

I would propose optional prop called [showPrevMonthByDefault] to be responsible for showing prev month if there's already range picked

redisotschek avatar Aug 01 '24 15:08 redisotschek