From 665881cd7015f2c18cb9284e30acc13f6638ebf9 Mon Sep 17 00:00:00 2001 From: brandonkelly Date: Tue, 19 Mar 2024 16:31:43 -0700 Subject: [PATCH] selectOnTab: false --- CHANGELOG.md | 4 ++++ src/templates/_includes/forms/selectize.twig | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6be4b1926cb..3271f68ebcd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Release Notes for Craft CMS 4 +## Unreleased + +- Selectize inputs no longer automatically select the hovered option on Tab press. ([selectize/selectize.js#2085](https://github.com/selectize/selectize.js/issues/2085)) + ## 4.8.4 - 2024-03-19 - Craft no longer shows an alert when an installed Craft/plugin edition is a lower tier than the licensed edition. diff --git a/src/templates/_includes/forms/selectize.twig b/src/templates/_includes/forms/selectize.twig index 164d5ec547f..c732bf0e764 100644 --- a/src/templates/_includes/forms/selectize.twig +++ b/src/templates/_includes/forms/selectize.twig @@ -168,6 +168,7 @@ $select.selectize($.extend({ searchField: ['text', 'hint', 'value', 'keywords'], + selectOnTab: false, render: { option: data => { const classes = ['option'];