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

date component init value default is now, but got null #67

Open
muziling opened this issue Feb 13, 2020 · 0 comments
Open

date component init value default is now, but got null #67

muziling opened this issue Feb 13, 2020 · 0 comments

Comments

@muziling
Copy link

muziling commented Feb 13, 2020

  1. date component init value not set in json or xml, component will default set to now, use formManager.getFormData() got value is String “null” , not null, expect value is now or null

  2. How to set date component value to null, I change initialDate () => DateTime.now(), to ()=> null , then got error

════════ (2) Exception caught by widgets library ═══════════════════════════════════════════════════
The getter 'year' was called on null.
Receiver: null
Tried calling: year

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant