mirror of
https://github.com/wassname/baukit.git
synced 2026-07-25 13:00:09 +08:00
Fix Menu widget bug.
This commit is contained in:
+2
-2
@@ -829,8 +829,8 @@ class Menu(Widget):
|
||||
with show.enter_tag(show.Tag('select', name='menu'), out=out):
|
||||
for value in self.choices:
|
||||
with show.enter_tag(show.Tag('option',
|
||||
(show.attrs(selected=None) if value == self.selection else None),
|
||||
value=value, out=out)):
|
||||
(show.attr(selected=None) if value == self.selection else None),
|
||||
value=value), out=out):
|
||||
out.append(html.escape(str(value)))
|
||||
return ''.join(out)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user