Skip to content

Commit 69caed1

Browse files
authored
Merge pull request #730 from Thoth2023/develop
Develop
2 parents b383599 + 5657ea3 commit 69caed1

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

app/Livewire/Conducting/StudySelection/PaperModal.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,20 +191,20 @@ public function saveSelectedCriterias()
191191
$this->selected_criterias = $this->temp_selected_criterias;
192192

193193
// Atualizar o status do paper
194-
/*
194+
195195
$criteria = Criteria::find(reset($addedCriterias));
196196
if ($criteria) {
197197
$this->updatePaperStatus($criteria->type);
198-
}*/
199-
198+
}
199+
/*
200200
$criteria = null;
201201
if (!empty($addedCriterias)) {
202202
$criteria = Criteria::find(reset($addedCriterias));
203203
}
204204
205205
if ($criteria) {
206206
$this->updatePaperStatus($criteria->type);
207-
}
207+
}*/
208208

209209
session()->flash('successMessage', 'Critérios salvos com sucesso');
210210
$this->dispatch('show-success');

resources/views/livewire/conducting/study-selection/paper-modal.blade.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,6 @@
169169

170170
@script
171171
<script>
172-
// --- Corrige o warning de aria-hidden / focus retido em modais ---
173-
document.addEventListener('hidden.bs.modal', function (event) {
174-
document.activeElement?.blur();
175-
});
176172
177173
document.addEventListener('livewire:initialized', () => {
178174
@@ -218,6 +214,11 @@
218214
console.log(`[${type}] ${message}`);
219215
}
220216
});
217+
218+
// --- Corrige o warning de aria-hidden / focus retido em modais ---
219+
document.addEventListener('hidden.bs.modal', function (event) {
220+
document.activeElement?.blur();
221+
});
221222
});
222223
</script>
223224
@endscript

0 commit comments

Comments
 (0)