vue-tiny-slider icon indicating copy to clipboard operation
vue-tiny-slider copied to clipboard

Uncaught DOMException: Failed to execute 'setAttribute' on 'Element': '' is not a valid attribute name.

Open Seeman13 opened this issue 3 years ago • 0 comments

Vue native 2.6 + Laravel 7

In app.js

...
import VueTinySlider from 'vue-tiny-slider';
...
...
components: { VueTinySlider },
...

In view blade:

...
<vue-tiny-slider :="{
                controls: true,
                items: 1.5,
                slideBy: 1,
                autoplay: false,
                nav: false,
                rewind: true,
                loop: true,
                edgePadding: 40,
                mouseDrag: true,
                responsive: {
                  1280: {
                    items: 2.2,
                    edgePadding: 150,
                  },
                  980: {
                    items: 2,
                    edgePadding: 150,
                  },
                  480: {
                    items: 1.8,
                    edgePadding: 50,
                  }
                }
              }">
                @foreach ($photos as $photo)
                    <div class="item">
                        {{ Html::image(photo) }}
                    </div>
                @endforeach
            </vue-tiny-slider>
...

And what is it not true?

Seeman13 avatar Apr 26 '21 17:04 Seeman13