-
Type: Bug
-
Status: Resolved
-
Priority: Blocker
-
Resolution: Fixed
-
Affects Version/s: 2.4.7, 3.0.0-SNAPSHOT
-
Component/s: Widgets
HF07 introduced a regression which makes nuxeo-date-picker not work in a dom-repeat
This is due to the line
this.$.date.set('i18n.firstDayOfWeek', this.firstDayOfWeek);
which sets the date value to null, but I don't know why.
The problem can be observed with this diff
diff --git a/elements/document/file/nuxeo-file-edit-layout.html b/elements/document/file/nuxeo-file-edit-layout.html index 974397e6..38871fb8 100644 --- a/elements/document/file/nuxeo-file-edit-layout.html +++ b/elements/document/file/nuxeo-file-edit-layout.html @@ -78,6 +78,12 @@ limitations under the License. > </nuxeo-directory-suggestion> + <template is="dom-repeat" items="{{dates}}" > + <nuxeo-date-picker value="{{item.date}}" label="Date de jugement :"></nuxeo-date-picker> + </template> + <nuxeo-date-picker role="widget" label="[[i18n('label.dublincore.expire')]]" @@ -96,6 +102,11 @@ limitations under the License. * @doctype File */ document: Object, + + dates: { + type: Array, + value: [{date: '11-03-20'}, {date: '1997-07-16T19:20:30.45+01:00'}], + }, }, }); </script>
- is related to
-
ELEMENTS-1187 moment not loading locales
- Resolved
-
ELEMENTS-940 Allow nuxeo-date-picker to select the week starting day
- Resolved
- Is referenced in