fix typescript type errors, MDF

This commit is contained in:
Val Erastov 2022-08-14 22:56:06 -07:00
parent 8afc46bd48
commit cbfd821d4d
2 changed files with 2 additions and 10 deletions

View file

@ -17,16 +17,8 @@ export default function InputControl(inprops) {
}
}, [divRef.current])
return <div className={type} ref={divRef}>
return <div className={type||'text'} ref={divRef}>
<input type='text' ref={inputRef} {...props} spellCheck='false' style={style} onWheel={onWheel}/>
</div>;
}
InputControl.propTypes = {
type: PropTypes.oneOf(['number', 'text']),
};
InputControl.defaultProps = {
type: 'text'
};

View file

@ -4,7 +4,7 @@ import {BaseSchemaField, OperationParamsErrorReporter} from "cad/craft/schema/sc
export interface StringTypeSchema extends BaseSchemaField {
type: Types.number,
type: Types.string,
enum?: string[]