Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RangePicker components used in the Form component error #5872

Closed
life88 opened this issue Apr 24, 2017 · 9 comments
Closed

RangePicker components used in the Form component error #5872

life88 opened this issue Apr 24, 2017 · 9 comments
Assignees
Labels
🐛 Bug Ant Design Team had proved that this is a bug.

Comments

@life88
Copy link
Contributor

life88 commented Apr 24, 2017

Version

2.9.2

Environment

Win10 64、Chrome57.0

Reproduction link

https://ant.design/components/form-cn/#components-form-demo-time-related-controls

Steps to reproduce

  1. Click the RangePicker component select a date
  2. Then removed the select date
  3. Reselect a date occur error

What is expected?

no error

What is actually happening?

Uncaught TypeError: Cannot read property 'clone' of undefined
@afc163 afc163 self-assigned this Apr 24, 2017
@afc163 afc163 added the 🐛 Bug Ant Design Team had proved that this is a bug. label Apr 24, 2017
@afc163 afc163 assigned benjycui and unassigned afc163 Apr 24, 2017
@life88 life88 closed this as completed Apr 25, 2017
@ladjzero
Copy link
Contributor

+1
Uncaught TypeError: Cannot read property 'clone' of undefined at Object.getEndValue (RangeCalendar.js:331) at Object.render (RangeCalendar.js:496) at ReactCompositeComponent.js:796 at measureLifeCyclePerf (ReactCompositeComponent.js:75) at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (ReactCompositeComponent.js:795) at ReactCompositeComponentWrapper._renderValidatedComponent (ReactCompositeComponent.js:822) at ReactCompositeComponentWrapper._updateRenderedComponent (ReactCompositeComponent.js:746) at ReactCompositeComponentWrapper._performComponentUpdate (ReactCompositeComponent.js:724) at ReactCompositeComponentWrapper.updateComponent (ReactCompositeComponent.js:645) at ReactCompositeComponentWrapper.receiveComponent (ReactCompositeComponent.js:547)

@cauu
Copy link

cauu commented Apr 25, 2017

+1

@life88
Copy link
Contributor Author

life88 commented Apr 25, 2017

Antd team has found the problem before me and has been fixed, so I closed the issue

@ladjzero
Copy link
Contributor

When will this patch be released? @afc163

@afc163 afc163 reopened this Apr 25, 2017
@afc163
Copy link
Member

afc163 commented Apr 25, 2017

@LeeHarlan Not fixed yet.

@kappa-gooner
Copy link
Contributor

+1

@phnessu4
Copy link

2.9.3 有相同的问题

独立使用没问题
<DatePicker.RangePicker />

Form用的时候有问题
getFieldDecorator('date_range', {})(<DatePicker.RangePicker />,)

报错

RangeCalendar.js:331 Uncaught TypeError: Cannot read property 'clone' of undefined
at Object.getEndValue (RangeCalendar.js:331)
at Object.render (RangeCalendar.js:496)
at eval (ReactCompositeComponent.js:796)
at measureLifeCyclePerf (ReactCompositeComponent.js:75)
at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (ReactCompositeComponent.js:795)
at ReactCompositeComponentWrapper._renderValidatedComponent (ReactCompositeComponent.js:822)
at ReactCompositeComponentWrapper._updateRenderedComponent (ReactCompositeComponent.js:746)
at ReactCompositeComponentWrapper._performComponentUpdate (ReactCompositeComponent.js:724)
at ReactCompositeComponentWrapper.updateComponent (ReactCompositeComponent.js:645)
at ReactCompositeComponentWrapper.receiveComponent (ReactCompositeComponent.js:547)

@weeuwee
Copy link

weeuwee commented Apr 30, 2017

+1

@lock
Copy link

lock bot commented May 1, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked and limited conversation to collaborators May 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 Bug Ant Design Team had proved that this is a bug.
Projects
None yet
Development

No branches or pull requests

8 participants