From 4b62d224876376f06f7450be82fe5a387a1258eb Mon Sep 17 00:00:00 2001 From: Xliff Date: Thu, 30 Mar 2023 01:59:08 -0400 Subject: [PATCH] Drop down lists key on the value attribute. This change fixes the use of the option text as the matching criterion. --- lib/Cro/WebApp/Form.rakumod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cro/WebApp/Form.rakumod b/lib/Cro/WebApp/Form.rakumod index d992a11..68fd3b4 100644 --- a/lib/Cro/WebApp/Form.rakumod +++ b/lib/Cro/WebApp/Form.rakumod @@ -551,7 +551,7 @@ role Cro::WebApp::Form { else { $key = $value = $opt; } - $key (elem) @current ?? ($key, $value, True) !! ($key, $value) + $value (elem) @current ?? ($key, $value, True) !! ($key, $value) }] }