Skip to content

Commit 39ce80f

Browse files
authored
Merge pull request #141 from ccmdesign/140-dropdown
[#140] Disable dropdown options when necessary
2 parents 82876f3 + f8abbbd commit 39ce80f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

prefix_finder/frontend/static/css/selectize.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,10 @@
261261
.selectize-dropdown .optgroup-header {
262262
padding: 5px 8px;
263263
}
264+
.selectize-dropdown [data-disabled] {
265+
padding: 5px 8px;
266+
cursor: no-drop;
267+
}
264268
.selectize-dropdown .optgroup:first-child .optgroup-header {
265269
border-top: 0 none;
266270
}
@@ -279,6 +283,9 @@
279283
.selectize-dropdown .create {
280284
color: rgba(48, 48, 48, 0.5);
281285
}
286+
.selectize-dropdown [data-disabled] {
287+
color: #a0a0a0;
288+
}
282289
.selectize-dropdown-content {
283290
overflow-y: auto;
284291
overflow-x: hidden;

0 commit comments

Comments
 (0)