From 6acfabf80fba3512c9b173b4adebd6eee94e9e17 Mon Sep 17 00:00:00 2001 From: Eymen Gunay Date: Tue, 10 May 2016 23:21:01 +0200 Subject: [PATCH] Dropdown menu tpl disabled attribute fix When a dropdown menu gets regenerated, menu options loose their "disabled" attribute. I have added the missing attribute in template string. --- src/definitions/modules/dropdown.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index be153d30e..4e592f007 100644 --- a/src/definitions/modules/dropdown.js +++ b/src/definitions/modules/dropdown.js @@ -3416,7 +3416,10 @@ $.fn.dropdown.settings.templates = { html = '' ; $.each(values, function(index, option) { - html += '
' + option[fields.name] + '
'; + html += (option.disabled) + ? '
' + option[fields.name] + '
' + : '
' + option[fields.name] + '
' + ; }); return html; },