From 679ee677725cb0ed234f0c136f1538b25c54a23f Mon Sep 17 00:00:00 2001 From: Jack Lukic Date: Mon, 15 Feb 2016 15:13:36 -0800 Subject: [PATCH] #3655 Removes deprecated use of size() --- RELEASE-NOTES.md | 7 ++++--- src/definitions/behaviors/form.js | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index a9a9adc84..b59dd5463 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -4,11 +4,12 @@ **Bugs** --**Dropdown** - Fixed issue where dropdowns with sub-menus would not properly activate on mobile #3183 --**API** - Fixes bug where `beforeSend` would not correctly cancel request when `return false;` is used in callback. #3660 +- **Dropdown** - Fixed issue where dropdowns with sub-menus would not properly activate on mobile #3183 +- **API** - Fixes bug where `beforeSend` would not correctly cancel request when `return false;` is used in callback. #3660 +- **Modal** - Fixes issue where RGB values set for dimmer `background-color` werent being correctly interpreted #3665 **Thanks @larsbo** **Enhancements** -**Build Tools** - Added new `autoInstall` option to allow for Semantic to be installed without user interaction. See [docs explanation]() for how to use. #3616 **Thanks @algorithme** +- **Build Tools** - Added new `autoInstall` option to allow for Semantic to be installed without user interaction. See [docs explanation]() for how to use. #3616 **Thanks @algorithme** ### Version 2.1.8 - Jan 7, 2016 diff --git a/src/definitions/behaviors/form.js b/src/definitions/behaviors/form.js index 7d1dca789..c63d7cb35 100644 --- a/src/definitions/behaviors/form.js +++ b/src/definitions/behaviors/form.js @@ -369,7 +369,7 @@ $.fn.form = function(parameters) { } if(requiresName) { $label = $field.closest(selector.group).find('label').eq(0); - name = ($label.size() == 1) + name = ($label.length == 1) ? $label.text() : $field.prop('placeholder') || settings.text.unspecifiedField ;