You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When putting dict {'value1':'label1',....} in options and .props('v-model="model" :options="options" emit-value') in ui.select, the ' emit-value' function is not working as expected and cause error of typeerror in select.py.
In Quasar document (https://quasar.dev/vue-components/select), nested dict is allowed to be passed to handle different feature like adding badges and icons.
[{
label: 'Google',
value: 'goog',
description: 'Search engine',
icon: 'mail'
},]
Traceback (most recent call last):
File "C:\Users\T\AppData\Local\Programs\Python\Python312\Lib\site-packages\nicegui\events.py", line 411, in handle_event
result = handler(arguments) if expects_arguments else handler()
^^^^^^^^^^^^^^^^^^
File "C:\Users\T\AppData\Local\Programs\Python\Python312\Lib\site-packages\nicegui\elements\mixins\value_element.py", line 40, in handle_change
self.set_value(self._event_args_to_value(e))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\T\AppData\Local\Programs\Python\Python312\Lib\site-packages\nicegui\elements\select.py", line 110, in _event_args_to_value
return self._values[e.args['value']]
~~~~~~^^^^^^^^^
TypeError: 'int' object is not subscriptable
Is there any work-around/fix for the situation? Thank you very much!
The text was updated successfully, but these errors were encountered:
Description
When putting dict {'value1':'label1',....} in options and .props('v-model="model" :options="options" emit-value') in ui.select, the ' emit-value' function is not working as expected and cause error of typeerror in select.py.
In Quasar document (https://quasar.dev/vue-components/select), nested dict is allowed to be passed to handle different feature like adding badges and icons.
[{
label: 'Google',
value: 'goog',
description: 'Search engine',
icon: 'mail'
},]
Is there any work-around/fix for the situation? Thank you very much!
The text was updated successfully, but these errors were encountered: