浏览代码

fix button dropdown tag

Falko Schindler 1 年之前
父节点
当前提交
e99a142663
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      nicegui/elements/button_dropdown.py

+ 2 - 1
nicegui/elements/button_dropdown.py

@@ -37,7 +37,8 @@ class DropdownButton(TextElement, DisableableElement, BackgroundColorElement, Va
         :param auto_close: whether the dropdown should close automatically when an item is clicked (default: `False`)
         :param auto_close: whether the dropdown should close automatically when an item is clicked (default: `False`)
         :param split: whether to split the dropdown icon into a separate button (default: `False`)
         :param split: whether to split the dropdown icon into a separate button (default: `False`)
         """
         """
-        super().__init__(text=text, background_color=color, value=value, on_value_change=on_value_change)
+        super().__init__(tag='q-btn-dropdown',
+                         text=text, background_color=color, value=value, on_value_change=on_value_change)
 
 
         if icon:
         if icon:
             self._props['icon'] = icon
             self._props['icon'] = icon