Bug reportNov 18, 2026· 1:39· 14 views
Element Plus 2.9.11: DatePicker type="month" ignores Enter/Space key — picker stays open after keyboard navigation
1:39 total
Comments · 0
Be the first to comment.
Bug reportby SceneRecap AI
mediumElement Plus DatePicker month panel (type="month") keyboard handling. Enter and Space keydown are not handled to confirm the month and close the popper. The date panel does handle Enter.
os: macOSdpr: 1page: Element Plus 2.9.11, DatePicker keyboard bug (#24862) demo pagelocale: en-USbrowser: Chromium 151.0.7922.34library: element-plus@2.9.11 (unpkg index.full.min.js)timezone: Europe/Berlinviewport: 1280x720framework: vue@3 (unpkg vue.global.prod.js)
Repro steps
- 1.Load the demo page with an el-date-picker type="month" and an el-date-picker type="date".
- 2.Click the textbox 'Pick a month' to open the month picker.
- 3.Wait for the month panel with the '2026' header to open.
- 4.Press Enter.
- 5.Press Space.
- 6.Click the page background to dismiss the panel.
- 7.Control: click the textbox 'Pick a date' to open the date picker.
- 8.Control: press Enter.
Expected
Pressing Enter or Space in the type="month" picker closes the panel and confirms the month. Enter closes the type="date" picker in the same way.
Actual
After Enter (41.2s) and Space (43.6s) the month panel stays open. It closes only after a click on the page background at 45.9s. The month input never shows a value. The type="date" control closes on Enter between 90.8s and 93.3s.
Evidence
visualThe month picker panel with the '2026' header is open below the focused 'Pick a month' input.
visualThe month panel body below the '2026' header is blank in every keyframe. No month cells are visible, so the recording does not show a specific month cell being hovered.
consoleWarning after Enter: 'element-plus#24862 bug: type="month" Enter, month panel still visible: false (bug: should have closed)'. The logged value 'false' contradicts the panel that is still open in the frame at 43.8s.
visualAfter Enter, the month panel is still open. A red banner reads 'BUG: pressing Enter, picker should close but stays open'. The input placeholder is gone and only a text cursor shows.
consoleWarning after Space: 'element-plus#24862 bug: type="month" Space, month panel still visible: true (bug)'.
visualAfter the background click the month panel fades out. The input shows the 'Pick a month' placeholder again and has no value.
visualControl: the date picker opens below 'Pick a date' with the header '2026 November' and weekday labels Sun to Sat. No day cells are visible.
visualControl works: after Enter at 90.8s the date panel is closed. A green banner reads 'CONTROL: Enter closed the date picker, works correctly'. The input still shows its placeholder.
consolePage load warnings: parser-blocking cross-site scripts for vue.global.prod.js and element-plus@2.9.11 loaded via document.write. These are probably unrelated to the bug.
Issue markdown (copy-paste ready)
## Bug: DatePicker type="month" ignores Enter and Space **Version:** element-plus 2.9.11 with vue@3 from unpkg **Environment:** Chromium 151.0.7922.34, macOS, 1280x720, en-US **Related:** element-plus#24862 ### Steps to reproduce 1. Open a page with an `el-date-picker` of `type="month"` and one of `type="date"` (1.0s). 2. Click the 'Pick a month' input (7.9s). The month panel with the '2026' header opens (10.9s). 3. Press **Enter** (41.2s). 4. Press **Space** (43.6s). 5. Click the page background (45.9s). 6. Control: click the 'Pick a date' input (49.2s) and press **Enter** (90.8s). ### Expected Enter or Space confirms the month and closes the month picker. Enter does this for `type="date"`. ### Actual - After Enter and Space the month panel stays open (43.8s). A red banner shows 'BUG: pressing Enter, picker should close but stays open'. - The panel closes only after a background click (45.9s). The input has no value. - Control: the `type="date"` picker closes after Enter (93.3s). A green banner shows 'CONTROL: Enter closed the date picker, works correctly'. ### Evidence - 43.6s console: `element-plus#24862 bug: type="month" Enter, month panel still visible: false (bug: should have closed)`. The logged `false` conflicts with the panel still open at 43.8s, so the check itself may be unreliable. - 45.2s console: `element-plus#24862 bug: type="month" Space, month panel still visible: true (bug)`. - From 10.9s on, the month panel body is blank in the keyframes. No month cells are visible, so the 'hover a month cell' step is not shown. The date panel day grid is also blank from 53.7s. - The date control input still shows its placeholder after Enter (93.3s, 96.6s), so a confirmed date value is not visible either. ### Suggested area Keyboard handling in the DatePicker month panel. Enter and Space should confirm the selection and close the popper, matching the date panel. *Recorded with SceneRecap.*
Your recordings could explain themselves too.
Free plan · silent recordings welcome · bug reports included.
Try SceneRecap free →