Tag select
with optgroups
option in combination with value
option
#110
v-kolesnikov
started this conversation in
General
Replies: 2 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Great work on this! I can apply your patch, but if you want to submit it as a PR, I can merge that directly. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I came across an ambiguous behaviour of
select
tag withoptgroups
option in combination withvalue
option.Consider the following tag:
I've also found a reason for that in Formatter:
forme/lib/forme/transformers/formatter.rb
Lines 411 to 415 in b480ce4
forme/lib/forme/transformers/formatter.rb
Lines 434 to 437 in b480ce4
forme/lib/forme/transformers/formatter.rb
Line 437 in b480ce4
On iteration over optgroups field
value
of@attr
var deleted on the first group iteration.I'm ready to send a PR if needed.
Beta Was this translation helpful? Give feedback.
All reactions