Skip to content

Commit

Permalink
added setInstance
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabowskiM committed Mar 3, 2022
1 parent 20f2416 commit 69ed9d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
...(config.flatpickrConfig ?? {}),
};

// TODO: use ibexa.helpers.objectInstances when merged
ibexa.helpers.objectInstances.setInstance(this.container, this);
}

clear() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,7 @@

{%- block date_time_picker_widget -%}
<div class="ibexa-picker">
<input type="text" class="ibexa-picker__input form-control" readonly="readonly">
<button type="button" class="ibexa-picker__btn--clear-input">
<svg class="ibexa-icon ibexa-icon--medium">
<use xlink:href="{{ ibexa_icon_path('circle-close') }}"></use>
</svg>
</button>
{% include '@ibexadesign/ui/component/input_date_and_time.html.twig' %}
{% set attr = attr|merge({ 'hidden': true, 'class': 'ibexa-picker__form-input' }) %}
{{ block('form_widget') }}
</div>
Expand Down

0 comments on commit 69ed9d3

Please sign in to comment.