this.loading = false); }, }" x-on:keydown.escape.prevent.stop="closePanel($refs.button)" x-on:focusin.window="! $refs.panel.contains($event.target) && closePanel()" x-id="['dropdown-button']"> 0) { this.timeout(); $watch('current', (val) => { if (val < -1) { this.update(this.itemCount + val); } else if (val > this.itemCount) { this.update(val - this.itemCount); } }); } }, update(newCurrent) { this
