Nested Disabled Checks

Is there something wrong with doing something like this:

Section::make('Info')
  ->disabled(function () {
      return someValue == 1;
    }
  ->schema([
      Select::make('some_other_value)
        ->disabled(function () {
          return someOtherCheck == 1;
        })
    ])


Basically, I'm trying to use disabled on an entire Section and then again on specific parts of that section. It's behaving very odd. I'm getting Uncaught TypeError: Cannot read properties of null (reading '__livewire') errors in the console. And the disable feature isn't working properly
Was this page helpful?