Skip to content

Commit

Permalink
Fix issue #7532: Disabled for NestedSelect (#7533)
Browse files Browse the repository at this point in the history
* Fix issue #7532: Disabled for NestedSelect

* Update panel/widgets/select.py

---------

Co-authored-by: Philipp Rudiger <prudiger@anaconda.com>
  • Loading branch information
mayonnaisecolouredbenz7 and philippjfr authored Dec 17, 2024
1 parent 8b45764 commit b7dc332
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions panel/widgets/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,7 @@ def _init_widget(self, i, options):
value = self._lookup_value(i, options, self.value, error=False)
widget_kwargs["options"] = options
widget_kwargs["value"] = value
widget_kwargs["disabled"] = self.param.disabled
if "visible" not in widget_kwargs:
# first select widget always visible
widget_kwargs["visible"] = i == 0 or callable(options) or len(options) > 0
Expand Down

0 comments on commit b7dc332

Please # to comment.