Skip to content

Commit aab5691

Browse files
committed
fix: add type hint for updated method parameter and save session state on letter search
1 parent 363ae8e commit aab5691

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Component.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public function clearSessionState(): void
134134
$this->resetInfiniteScroll();
135135
}
136136

137-
public function updated($_property): void
137+
public function updated(string $_property): void
138138
{
139139
if (in_array($_property, ['perPage', 'infiniteScroll'], true)) {
140140
$this->resetInfiniteScroll();
@@ -377,6 +377,8 @@ public function handleSelectedLetter($selectedLetter): void
377377
$this->searchLetter = $selectedLetter;
378378
$this->filter = array_merge($this->filter, ['search_letter' => array_fill_keys($this->letterSearchColumns, $selectedLetter)]);
379379
}
380+
381+
$this->saveSessionState();
380382
}
381383

382384
public function handleToggleColumns(string $field): void

0 commit comments

Comments
 (0)