invent icon indicating copy to clipboard operation
invent copied to clipboard

Builder shows warnings: Invalid prop: type check failed for prop "modelValue". Expected String, got Number

Open mhsmith opened this issue 1 month ago • 0 comments

In the builder, warnings like this appear every time you select a widget that has an IntegerProperty. They appear to be harmless, but they flood the console and make debugging more difficult.

For example, on a Slider:

builder-model.ts:236 [Vue warn]: Invalid prop: type check failed for prop "modelValue". Expected String with value "0", got Number with value 0. 
  at <IbInput key=4 label="minvalue" type="text"  ... > 
  at <IbHStack key="minvalue" is-full-width="" spacing=4  ... > 
  at <IbVStack key=0 spacing=4 > 
  at <BuilderDesktopLayout> 
  at <Builder> 
  at <App>

On a Page:

builder-model.ts:236 [Vue warn]: Invalid prop: type check failed for prop "modelValue". Expected String with value "100", got Number with value 100. 
  at <IbInput key=4 label="column_width" type="text"  ... > 
  at <IbHStack key="column_width" is-full-width="" spacing=4  ... > 
  at <IbVStack key=0 spacing=4 > 
  at <BuilderDesktopLayout> 
  at <Builder> 
  at <App>

mhsmith avatar Jun 26 '24 11:06 mhsmith