Skip to content

Commit

Permalink
fix pharaonic attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
MoamenEltouny committed Aug 21, 2021
1 parent 56637ec commit ec98e2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/pharaonic.select2.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion resources/views/components/scripts.blade.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<script>document.addEventListener("DOMContentLoaded",e=>{if(void 0===a)var a={};var t={Select2:{init:function(){$('[data-pharaonic]:not("[data-select2-id]")').each(function(){a.Select2.load($(this),$(this).is("[data-component-id]")?$(this).data("component-id"):null)})},load:function(e,a){if(a){var t={multiple:$(e).is("[multiple]"),placeholder:$(e).is("[data-placeholder]")?$(e).data("placeholder"):"Select an option",language:$(e).is("[data-language]")?$(e).data("language"):"en",dir:$(e).is("[data-dir]")?$(e).data("dir"):"ltr",dropdownParent:$(e).is("[data-parent]")?$($(e).data("parent")):null,minimumResultsForSearch:$(e).is("[data-search-off]")?-1:0},d=e[0].attributes,i=d.getNamedItem("wire:model")||d.getNamedItem("wire:model.defer")||null;if(delete d,e=$(e).select2(t),i){var n=i.value,l=i.name.search("defer")>0;e.on("select2:select",function(){Livewire.first(a).set(n,$(e).val(),l)})}}}}};Object.assign(a,t),$(document).ready(function(){a.Select2.init()}),window.addEventListener("pharaonic.select2.load",e=>{a.Select2.load(e.detail.target,e.detail.component)})});</script>
<script>document.addEventListener("DOMContentLoaded",e=>{if(void 0===a)var a={};var t={Select2:{init:function(){$('[data-pharaonic="select2"]:not("[data-select2-id]")').each(function(){a.Select2.load($(this),$(this).is("[data-component-id]")?$(this).data("component-id"):null)})},load:function(e,a){if(a){var t={multiple:$(e).is("[multiple]"),placeholder:$(e).is("[data-placeholder]")?$(e).data("placeholder"):"Select an option",language:$(e).is("[data-language]")?$(e).data("language"):"en",dir:$(e).is("[data-dir]")?$(e).data("dir"):"ltr",dropdownParent:$(e).is("[data-parent]")?$($(e).data("parent")):null,minimumResultsForSearch:$(e).is("[data-search-off]")?-1:0},d=e[0].attributes,i=d.getNamedItem("wire:model")||d.getNamedItem("wire:model.defer")||null;if(delete d,e=$(e).select2(t),i){var n=i.value,l=i.name.search("defer")>0;e.on("select2:select",function(){Livewire.first(a).set(n,$(e).val(),l)})}}}}};Object.assign(a,t),$(document).ready(function(){a.Select2.init()}),window.addEventListener("pharaonic.select2.load",e=>{a.Select2.load(e.detail.target,e.detail.component)})});</script>

0 comments on commit ec98e2d

Please sign in to comment.