Skip to content

RangePicker 在mode 等于year的时候,面板无法选中 #716

@fanlei1988

Description

@fanlei1988
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.3.8

Environment

系统版本 :window10 浏览器版本:chrome Vue 版本:2.5

Reproduction link

Edit on CodeSandbox

Steps to reproduce

<template>
<div style="margin: 24px">
<a-range-picker
:placeholder="['Start Year', 'End Year']"
format="YYYY"
v-model="value"
:mode="mode2"
@panelChange="handlePanelChange2"
/>
</div>
</template>

<script>
import moment from "moment";
export default {
name: "App",
data() {
return {
moment,
mode2: ['year', 'year'],
value: [],
};
},
methods: {
handlePanelChange2 (value, mode) {
this.value = value
this.mode2 = ['year','year']
},
}
};
</script>

<style></style>

What is expected?

选中年份的时候,为选中状态

What is actually happening?

选中年份的时候,无变化


另外,当我使用mode=month的时候,第二个选择完毕的时候,无法自动关闭,只能移动鼠标关闭

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions