Skip to content

Commit 6ad4173

Browse files
committed
Closes #605 angular element children selector usage
@apinnecke fixed angular element children selector usage
1 parent c5938b1 commit 6ad4173

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

dist/angular-schema-form.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* angular-schema-form
33
* @version 1.0.0-alpha.1
4-
* @date Tue, 31 Jan 2017 11:57:55 GMT
4+
* @date Tue, 31 Jan 2017 13:48:26 GMT
55
* @link https://github.com/json-schema-form/angular-schema-form
66
* @license MIT
77
* Copyright (c) 2014-2017 JSON Schema Form
@@ -2153,7 +2153,11 @@ FIXME: real documentation
21532153
childScope.schemaForm = { form: merged, schema: schema };
21542154

21552155
//clean all but pre existing html.
2156-
element.children(':not(.schema-form-ignore)').remove();
2156+
Array.prototype.forEach.call(element[0].children, function (child) {
2157+
if ([' ', child.className, ' '].join('').indexOf(' schema-form-ignore ') === -1 && child.querySelectorAll('[sf-insert-field]').length === 0) {
2158+
__WEBPACK_IMPORTED_MODULE_0_angular___default.a.element(child).remove();
2159+
}
2160+
});
21572161

21582162
// Find all slots.
21592163
var slots = {};

0 commit comments

Comments
 (0)