I ran into this issue today and thought I'd share:
I created a custom control, and for that custom control I created a few custom properties. One of these properties was unfortunately named "size". There isn't any warning that size would be a bad name for a property, but that causes a problem. It causes a problem because compositeData is just a Map, and size is a method of Map.
So what you wind up getting for some reason, is the entire javascript array instead of the value you are looking for. Something like this:
{size=md, label={columns=2, text=test}, input={dataBinding=null, columns=10}}
I haven't tested it, but I suspect it would be the same with properties named values and clear, among others.
However, if you rename the size property, everything works just fine.
I created a custom control, and for that custom control I created a few custom properties. One of these properties was unfortunately named "size". There isn't any warning that size would be a bad name for a property, but that causes a problem. It causes a problem because compositeData is just a Map, and size is a method of Map.
So what you wind up getting for some reason, is the entire javascript array instead of the value you are looking for. Something like this:
{size=md, label={columns=2, text=test}, input={dataBinding=null, columns=10}}
I haven't tested it, but I suspect it would be the same with properties named values and clear, among others.
However, if you rename the size property, everything works just fine.
Comments
Post a Comment