Explorar o código

fix spinner type comparison

Falko Schindler %!s(int64=2) %!d(string=hai) anos
pai
achega
684aeefe99
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      nicegui/elements/spinner.py

+ 1 - 1
nicegui/elements/spinner.py

@@ -44,7 +44,7 @@ class Spinner(Element):
         :param color: color of the spinner (default: "primary")
         :param thickness: thickness of the spinner (applies to the "default" spinner only, default: 5.0)
         """
-        super().__init__('q-spinner' if type is 'default' else f'q-spinner-{type}')
+        super().__init__('q-spinner' if type == 'default' else f'q-spinner-{type}')
         self._props['size'] = size
         self._props['color'] = color
         self._props['thickness'] = thickness