Skip to content

Commit

Permalink
so much wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
VasilyStrelyaev committed Sep 6, 2023
1 parent c7105e2 commit 9dee148
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -347,19 +347,18 @@ const DropDownEditor = TextBox.inherit({
$container.empty();

const $templateWrapper = $('<div>').addClass(DROP_DOWN_EDITOR_FIELD_TEMPLATE_WRAPPER).appendTo($container);
const $templateContainer = getPublicElement($templateWrapper);

fieldTemplate.render({
model: data,
container: $templateContainer,
container: getPublicElement($templateWrapper),
onRendered: () => {
const $input = this._input($templateContainer);
const $input = this._input($templateWrapper);

if(!$input.length) {
throw errors.Error('E1010');
}

const renderedInRoot = !!this.$element().find($templateContainer).length;
const renderedInRoot = !!this.$element().find($templateWrapper).length;

if(!renderedInRoot) {
return;
Expand Down

0 comments on commit 9dee148

Please sign in to comment.