PDA

View Full Version : DatePickerField does not work on 6.6.0+



justdavey
31 Oct 2018, 5:33 AM
The date picker does not open. See official Kitchen Sink:

https://examples.sencha.com/ExtReact/6.6.0/kitchensink/#/components/forms/datepickerfield



ext.js:1 Uncaught TypeError: Cannot read property 'addCls' of null
at constructor.initialize (ext.js:1)
at constructor (ext.js:1)
at constructor.callParent (ext.js:1)
at constructor (ext.js:1)
at new constructor (ext.js:1)
at eval (eval at getInstantiator (ext.js:1), <anonymous>:3:8)
at Object.create (ext.js:1)
at constructor.applyPicker (ext.js:1)
at constructor.callParent (ext.js:1)
at constructor.applyPicker (ext.js:1)




ext.js:1 Uncaught TypeError: Cannot read property 'show' of undefined
at constructor.showPicker (ext.js:1)
at constructor.expand (ext.js:1)
at constructor.onExpandTap (ext.js:1)
at Object.callback (ext.js:1)
at constructor.onClick (ext.js:1)
at constructor.fire (ext.js:1)
at constructor.fire (ext.js:1)
at constructor.publish (ext.js:1)
at constructor.publishDelegatedDomEvent (ext.js:1)
at constructor.doDelegatedEvent (ext.js:1)

Forum_Adm
4 Nov 2018, 12:25 PM
Thanks for bringing this to our attention. I have shared it with support and they will follow up.

Michele

bpick88
6 Nov 2018, 11:21 PM
the root cause is you're in timezone with DST. the issue is "ExtDate.add(monthStart, ExtDate.DAY, startOffset);" in DateView.js. you could update it into ExtDate.add(monthStart, ExtDate.DAY, startOffset, true); by overriding refresh function within DateView.js. true arg is to bypass DST

peter kd
7 Nov 2018, 12:41 AM
the root cause is you're in timezone with DST. the issue is "ExtDate.add(monthStart, ExtDate.DAY, startOffset);" in DateView.js. you could update it into ExtDate.add(monthStart, ExtDate.DAY, startOffset, true); by overriding refresh function within DateView.js. true arg is to bypass DST

Thank pro. Sencha should be sent for you a ticket massage

Silfide
27 Nov 2018, 5:01 AM
How did you managed to start an app with sencha 6.6.0?