Skip to content

Commit d407a96

Browse files
author
esbakker
committed
Fix options extend
Extend SchemaForm.options and schema to new object instead of SchemaForm.options so the default will not be overridden. This fixes the issue with multiple editors.
1 parent beee30b commit d407a96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/schema-form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ angular.module('mohsen1.schema-form', [])
3535
}
3636

3737
var formEl = window.document.createElement('div');
38-
var options = angular.extend(SchemaForm.options, {schema: scope.schema});
38+
var options = angular.extend({}, SchemaForm.options, {schema: scope.schema});
3939
var jsonEditor = null;
4040

4141
element.prepend(formEl);

0 commit comments

Comments
 (0)