Bugfixes - Editor images, git-gateway auth, editor scrolling, numeric selects, object/list previews (#50)
* v1.0.0-alpha26
This commit is contained in:
committed by
GitHub
parent
1de3d52d57
commit
8c8a59093d
@ -133,7 +133,11 @@ export function registerWidget<T = unknown>(
|
||||
name: string | WidgetParam<T> | WidgetParam[],
|
||||
control?: string | Widget<T>['control'],
|
||||
preview?: Widget<T>['preview'],
|
||||
{ schema, validator, getValidValue }: WidgetOptions = {},
|
||||
{
|
||||
schema,
|
||||
validator = () => false,
|
||||
getValidValue = (value: unknown) => value,
|
||||
}: WidgetOptions = {},
|
||||
): void {
|
||||
if (Array.isArray(name)) {
|
||||
name.forEach(widget => {
|
||||
|
Reference in New Issue
Block a user