Merge pull request #16741 from woocommerce/fix/16731

Make selectwoo trim text to avoid whitespace
This commit is contained in:
Claudiu Lodromanean 2017-09-07 10:59:52 -07:00 committed by GitHub
commit f6e8ed2090
4 changed files with 6 additions and 6 deletions

View File

@ -3288,7 +3288,7 @@ S2.define('select2/data/select',[
if ($option.is('option')) {
data = {
id: $option.val(),
text: $option.text(),
text: $option.text().trim(),
disabled: $option.prop('disabled'),
selected: $option.prop('selected'),
title: $option.prop('title')

File diff suppressed because one or more lines are too long

View File

@ -3288,7 +3288,7 @@ S2.define('select2/data/select',[
if ($option.is('option')) {
data = {
id: $option.val(),
text: $option.text(),
text: $option.text().trim(),
disabled: $option.prop('disabled'),
selected: $option.prop('selected'),
title: $option.prop('title')

File diff suppressed because one or more lines are too long