Skip to content

Comments

fix(daterangepicker): prevent full-width spanning and unintended click targets#5668

Draft
Copilot wants to merge 3 commits intodevelopfrom
copilot/fix-daterangepicker-width-issue
Draft

fix(daterangepicker): prevent full-width spanning and unintended click targets#5668
Copilot wants to merge 3 commits intodevelopfrom
copilot/fix-daterangepicker-width-issue

Conversation

Copy link
Contributor

Copilot AI commented Nov 7, 2025

DateRangePicker was inheriting width: 100% from input defaults, causing the entire row to be clickable and unintentionally opening the calendar when clicking empty space beside the component.

Changes

Core Package

  • Added $kendo-daterange-picker-width variable to decouple component width from input defaults
  • Changed .k-daterange-picker from display: flex to display: inline-flex
  • Applied new width variable instead of $kendo-input-default-width

Theme Packages

  • Set $kendo-daterange-picker-width: auto across all themes (default, classic, material, fluent, bootstrap)

CSS Impact

// Before
.k-daterange-picker {
  width: 100%;
  display: flex;
}

// After
.k-daterange-picker {
  width: auto;
  display: inline-flex;
}

Result

Component now sizes to content rather than spanning full width. Clicking outside the visible component no longer triggers calendar popup.

Before: Full-width clickable area

After: Component sized to content

Relates to telerik/kendo-react#2362

Original prompt

This section details on the original issue you should resolve

<issue_title>DateRangePicker full width issue</issue_title>
<issue_description>Describe the bug
The DateRangePicker spans at 100% width and clicking outside of the component opens the calendar.
Related issue: telerik/kendo-react#2362

To reproduce
Steps to reproduce the behavior:

  1. Go to https://www.telerik.com/kendo-react-ui/components/dateinputs/daterangepicker/default-value/
  2. Click somewhere next to the component (at the right side)
  3. The calendar opens

Expected behavior
To not open the calendar when clicking outside of the page.

Screenshots
Image

Affected suites (please remove the unneeded items)

  • Kendo UI for React

Possible workaround

.k-daterange-picker, .k-daterangepicker {
    width: auto;
    display: inline-flex;

}

</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…nline-flex

Co-authored-by: inikolova <1826086+inikolova@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix DateRangePicker full width issue fix(daterangepicker): prevent full-width spanning and unintended click targets Nov 7, 2025
Copilot AI requested a review from inikolova November 7, 2025 08:24
@github-actions
Copy link

github-actions bot commented Nov 7, 2025

Packages Report

core default classic bootstrap material fluent utils html
Size 29.20 KB (0.0%) 770.99 KB (0.0%🔼) 769.69 KB (0.0%) 784.79 KB (0.0%🔼) 918.92 KB (0.0%) 1185.10 KB (-0.0%🔽) 625.19 KB (0.0%) 77.77 MB (0.0%)
Gzip Size 4.86 KB (0.0%) 99.56 KB (0.0%) 99.79 KB (0.0%) 101.49 KB (0.0%) 112.56 KB (0.0%) 137.07 KB (-0.0%🔽) 52.16 KB (0.0%) 15.95 MB (0.0%)
Compile Time 0.9 s (0.0%) 3.0 s (0.0%) 2.7 s (0.0%) 3.1 s (0.0%) 3.2 s (0.0%) 3.5 s (0.0%) 2.3 s (0.0%) 8.3 s (0.0%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DateRangePicker full width issue

3 participants