-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Fixed date display issue after filtration on sales order page. #15367
Conversation
|
@@ -95,7 +95,7 @@ define([ | |||
timezoneFormat: 'YYYY-MM-DD HH:mm', | |||
|
|||
listens: { | |||
'value': 'onValueChange', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, @vishal-7037, thank you for collaboration. We can't remove the handler onValueChange
.
The value
property has the responsibility to set and get data from the registry
.
The registry
use as storage to transport data from client to server and conversely, the data from registry
send to the server and server puts the data to the registry
when page loading.
All UiComponents
reads data from registry
and put it to local value
property.
You can look it inside abstract.js
.
The shiftedValue
is the only local property that used for UI rendering.
So, in case when we selected some date in datepicker
and saved it after page reload the datepicker
component will not render it, because the value
is exist, but handler for value
don't run, and date will not be set to the shiftedValue
property.
Hello @VladimirZaets , |
@magento-engcom-team give me test instance |
Hi @VladimirZaets. Thank you for your request. I'm working on Magento instance for you |
Hi @VladimirZaets, here is your Magento instance. |
@magento-engcom-team give me 2.2-develop instance |
Hi @VladimirZaets. Thank you for your request. I'm working on Magento 2.2-develop instance for you |
Hi @VladimirZaets, here is your Magento instance. |
@vishal-7037 Please, find the solution to this problem. |
Hi @VladimirZaets , |
Hi @VladimirZaets |
Hi @vishal-7037, your fix doesn't resolve the problem. In general, component The right solution for this issue is understude why wrong date format was passed and if needed configure the right format. |
@vishal-7037, I am closing this PR now due to inactivity. |
Description
In
date.js
file at line no 97, there were two method used to format/shift date value aslistens
param.The method
onShiftedValueChange
is callonValueChange
method inside it's body content so there is no need to use both methods.Because of both methods, the values of date fields are format/shift two times and rises the issue of
Invalid Date
.Fixed Issues (if relevant)
Manual testing scenarios
Contribution checklist