Andrea Mazzini

Results 168 comments of Andrea Mazzini

I'm having the same issue, I noticed that it only happens when the control is mounted inside a `label` tag. ```jsx Country setSelected(code)} /> ``` It looks like that in...

Hi @andrealufino Can you reproduce the issue in the sample project to help debug the issue?

Empty arrays are packed correctly, and from the code you posted the array can't be nil (unless you use force unwrapping, but in that case it would bail out earlier)

Yeah, that might be the issue as far as I can tell

Yep, this is due to the JSON serialization.

Ok, I was able to reproduce the issue. Let me see if I can fix it.

The problem is inherent to Swift 3's `Any` type, which can hold an optional of `nil` value. The JSON serializer doesn't play well with a nil value. You can test...

I agree on the Any vs AnyObject. There are a couple of related radars open: [SR-2390](https://bugs.swift.org/browse/SR-2390) [SR-2378](https://bugs.swift.org/browse/SR-2378) For the moment it would be better to check if the JSON is...

@andrealufino check out branch `issue-56` for a fix and let me know.

Hey @nickoneill I've added a test case in the branch `issue-56` (please note the test currently passes since I added the check in the `write` func, comment out 117:120 in...