You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using an editor with IconPicker type, there is a crash as this is attempting to call setFocus on a ref.
imports...
StandardEditorNamesasEditor,PropertyEditorParamTypesasEditorParam,StandardTypeNamesasType,/** Create a property record to test, allowing editors to be defined. */functioncreatePropertyRecord(type: Type,value: any,editor?: Editor|PropertyRecord["property"]["editor"]){returnnewPropertyRecord({valueFormat: PropertyValueFormat.Primitive,
value,},{typename: type,name: "",displayLabel: "",editor: typeofeditor==="string" ? {name: editor} : editor,});}createPropertyRecord(Type.String,"icon-app-2",{name: Editor.IconPicker,params: [{type: EditorParam.IconListData,iconValue: "icon-app-2",numColumns: 2,iconValues: ["icon-app-1","icon-app-2","icon-apps-itwin"],}asIconListEditorParams,],}),
Validate if this "always" crash or the test conditions caused it, if it always crash, validate if the component is really needed, or if the implementation could be completely changed...
The text was updated successfully, but these errors were encountered:
Describe the bug
When using an editor with IconPicker type, there is a crash as this is attempting to call
setFocus
on a ref.Validate if this "always" crash or the test conditions caused it, if it always crash, validate if the component is really needed, or if the implementation could be completely changed...
The text was updated successfully, but these errors were encountered: