Skip to content

Commit

Permalink
Make use of disabled option in search result
Browse files Browse the repository at this point in the history
  • Loading branch information
juniwalk authored Jan 29, 2024
1 parent 0224dbb commit cbf8211
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Tools/SearchPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,11 @@ protected function checkStructure(mixed $item): array
$item = [
'id' => $item->getValue(),
'text' => $item->getText(),
'content' => $item->{'data-content'},
'group' => $item->{'data-group'},
'icon' => $item->{'data-icon'},
'color' => $item->{'data-color'},
'content' => $item->getAttribute('data-content'),
'group' => $item->getAttribute('data-group'),
'icon' => $item->getAttribute('data-icon'),
'color' => $item->getAttribute('data-color'),
'disabled' => $item->getDisabled() ?? false,
];
}

Expand Down

0 comments on commit cbf8211

Please sign in to comment.