HOT-FIX. Добавлены методы создания компонентов и нод внутри компонентов
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
import Component from '../component';
|
||||
import {createElement} from '../../utils/elementUtils';
|
||||
import {FORM_TYPES} from '../../consts';
|
||||
|
||||
class FormControl extends Component {
|
||||
@ -16,7 +15,7 @@ class FormControl extends Component {
|
||||
|
||||
this.label = this.mainNode.querySelector('.form-label');
|
||||
this.errorText = this.mainNode.querySelector('.form-text');
|
||||
this.input = createElement({
|
||||
this.input = this.createElement({
|
||||
tagName: this.getInputTagName(type),
|
||||
options: {
|
||||
className: `form-control ${className}`,
|
||||
|
||||
Reference in New Issue
Block a user