M3 Integration fixes
This commit is contained in:
@@ -10,7 +10,7 @@ window.jQuery = $;
|
||||
select2(window, $);
|
||||
|
||||
function livewireComponentFor(element) {
|
||||
const componentRoot = element.closest('[wire\\:id]');
|
||||
const componentRoot = element.closest(String.raw`[wire\:id]`);
|
||||
|
||||
if (!componentRoot || ! window.Livewire) {
|
||||
return null;
|
||||
@@ -30,8 +30,7 @@ function setLivewireProperty(element, model, value) {
|
||||
}
|
||||
|
||||
function initialiseHelpdeskSelects() {
|
||||
$('[data-helpdesk-select2]').each(function () {
|
||||
const select = this;
|
||||
$('[data-helpdesk-select2]').each((_index, select) => {
|
||||
const $select = $(select);
|
||||
const placeholder = $select.data('placeholder') || $select.find('option[value=""]').first().text() || 'Select option';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user