ajsf
ajsf copied to clipboard
Values extracted from date-time components cannot be entered back into date-time components
Describe the bug which template:
- [ ] MaterialDesignFrameworkModule — Material Design
- [x] Bootstrap3FrameworkModule — Bootstrap 3
- [x] Bootstrap4FrameworkModule — Bootstrap 4
- [x] NoFrameworkModule — plain HTML
- [ ] Other (please specify below)
A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
<div>
<json-schema-form
loadExternalAssets="true"
framework="bootstrap-4"
[schema]="mySchema"
[data]="myData">
</json-schema-form>
</div>
mySchema = {
schema: {
title: 'Date and time widgets',
type: 'object',
properties: {
native: {
title: 'Native',
description: 'May not work on some browsers, notably Firefox Desktop and IE.',
type: 'object',
properties: {
datetime: { type: 'string', format: 'date-time' },
date: { type: 'string', format: 'date' }
}
}
}
}
};
myData = {
native: {
datetime: '2020-08-26T09:59',
date: '2020-08-26'
}
};
Expected behavior
Form initialises with date-time component set to 2020-08-26T09:59:00Z, date-time component renders properly
Actual behavior


Desktop (please complete the following information):
- OS: Windows
- Browser Chrome
- Version: 83.0.4103.116
Context
If loading data into a form, you should be able to see the date-time values previously entered.
Anyone?
Stale issue