From 33788391619a8a52592488dfe5b7c405593ccb81 Mon Sep 17 00:00:00 2001 From: Christian Brauwers Date: Mon, 12 Sep 2022 10:17:43 +0200 Subject: [PATCH] Update Flatpickr.php use optional an own id to be compatible with wrap mode --- src/Flatpickr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Flatpickr.php b/src/Flatpickr.php index 3bd6380..5e25f25 100644 --- a/src/Flatpickr.php +++ b/src/Flatpickr.php @@ -71,7 +71,7 @@ public function run(): string */ private function registerClientScript() { - $this->_id = $this->options['id']; + $this->_id = $this->options['flatpickr'] ?? $this->options['id']; $view = $this->getView(); $config = Json::encode(ArrayHelper::merge($this->defaultOptions, $this->clientOptions));