Merge pull request #16741 from woocommerce/fix/16731
Make selectwoo trim text to avoid whitespace
This commit is contained in:
commit
f6e8ed2090
|
@ -3288,7 +3288,7 @@ S2.define('select2/data/select',[
|
||||||
if ($option.is('option')) {
|
if ($option.is('option')) {
|
||||||
data = {
|
data = {
|
||||||
id: $option.val(),
|
id: $option.val(),
|
||||||
text: $option.text(),
|
text: $option.text().trim(),
|
||||||
disabled: $option.prop('disabled'),
|
disabled: $option.prop('disabled'),
|
||||||
selected: $option.prop('selected'),
|
selected: $option.prop('selected'),
|
||||||
title: $option.prop('title')
|
title: $option.prop('title')
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -3288,7 +3288,7 @@ S2.define('select2/data/select',[
|
||||||
if ($option.is('option')) {
|
if ($option.is('option')) {
|
||||||
data = {
|
data = {
|
||||||
id: $option.val(),
|
id: $option.val(),
|
||||||
text: $option.text(),
|
text: $option.text().trim(),
|
||||||
disabled: $option.prop('disabled'),
|
disabled: $option.prop('disabled'),
|
||||||
selected: $option.prop('selected'),
|
selected: $option.prop('selected'),
|
||||||
title: $option.prop('title')
|
title: $option.prop('title')
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue