Skip to content

Commit eba4131

Browse files
author
Cerem Cem ASLAN
committed
fixed "disabled" attribute observation
1 parent 1c8a71b commit eba4131

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

components/dropdown/index.ls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Ractive.components['dropdown'] = Ractive.extend do
2828
debug: yes
2929

3030
# map attributes to classes
31-
for attr, cls of {\multiple, \disabled, 'fit-width': \fluid}
31+
for attr, cls of {\multiple, 'fit-width': \fluid}
3232
if @get attr then @set \class, "#{@get 'class'} #{cls}"
3333

3434
if @get \key => @set \keyField, that

components/dropdown/index.pug

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
+iff('inline || button || compact')
1818
.ui.dropdown(class="{{class}} \
1919
\
20+
{{#disabled}}disabled{{/}} \
2021
{{#inline}}inline{{/}} \
2122
{{#button}}floating icon button{{/}} \
2223
{{#compact}}compact floating{{/}} \
@@ -57,6 +58,7 @@
5758
+else
5859
//-div(style="display: inline-block")
5960
.ui.search.selection.dropdown(class="{{class}} \
61+
{{#disabled}}disabled{{/}} \
6062
{{#loading}}loading{{/}} \
6163
{{#emptyReduced}}error{{/}}"
6264
style="{{#readonly}}display: none{{/}}"

0 commit comments

Comments
 (0)