You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2023/04/24 08:39:30 UTC
[myfaces-tobago] 01/02: fix(selectOne|ManyList): Filtering should use itemLabel instead of itemValue issue: TOBAGO-2213
This is an automated email from the ASF dual-hosted git repository.
bommel pushed a commit to branch tobago-5.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
commit a399eb4a5c34907288591c71acc4a331b12e0c4a
Author: Bernd Bohmann <bo...@apache.org>
AuthorDate: Sun Apr 23 09:45:40 2023 +0200
fix(selectOne|ManyList): Filtering should use itemLabel instead of itemValue
issue: TOBAGO-2213
---
.../tobago-theme-standard/src/main/ts/tobago-select-list-base.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tobago-theme/tobago-theme-standard/src/main/ts/tobago-select-list-base.ts b/tobago-theme/tobago-theme-standard/src/main/ts/tobago-select-list-base.ts
index 705576fb73..a4117e55de 100644
--- a/tobago-theme/tobago-theme-standard/src/main/ts/tobago-select-list-base.ts
+++ b/tobago-theme/tobago-theme-standard/src/main/ts/tobago-select-list-base.ts
@@ -175,7 +175,7 @@ export abstract class SelectListBase extends HTMLElement {
let entriesCount = 0;
if (filterFunction != null) {
this.rows.forEach(row => {
- const itemValue = row.dataset.tobagoValue;
+ const itemValue = row.cells.item(0).textContent;
if (filterFunction(itemValue, searchString)) {
row.classList.remove(Css.D_NONE);
entriesCount++;