From 3058a3993fdcd52e6f9d94d7a32b53b8fef08de2 Mon Sep 17 00:00:00 2001 From: Josh Johnson Date: Tue, 30 Oct 2018 20:21:52 +0000 Subject: [PATCH] Disable element if disabled attr passed --- test/select-multiple.html | 11 +++++++++++ test/select-one.html | 11 +++++++++++ test/text.html | 18 ++++++++++++------ 3 files changed, 34 insertions(+), 6 deletions(-) diff --git a/test/select-multiple.html b/test/select-multiple.html index 2fd76fd..32a362c 100644 --- a/test/select-multiple.html +++ b/test/select-multiple.html @@ -68,6 +68,15 @@ +
+ + +
+
+
+ + +
+
-
- - +
+ + +
+ +
+ +
@@ -104,10 +109,11 @@ regexFilter: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, }); - new Choices('#choices-disabled', { + new Choices('#choices-adding-items-disabled', { addItems: false, - removeItems: false, - }).disable(); + }); + + new Choices('#choices-disabled-via-attr'); new Choices('#choices-prepend-append', { prependValue: 'before-',