unused developments ejected

This commit is contained in:
Burak Civan 2022-11-28 17:58:41 +03:00
parent ecc643435b
commit 5714269f4a
2 changed files with 9 additions and 11 deletions

View File

@ -246,11 +246,10 @@ function runTooltip(tooltipToggleEl) {
function show() { function show() {
// Make the tooltip visible // Make the tooltip visible
if (tooltipEl.classList.contains("opacity-0", "invisible")) { tooltipEl.classList.remove("opacity-0");
tooltipEl.classList.remove("opacity-0", "invisible"); tooltipEl.classList.add("opacity-100");
} else { tooltipEl.classList.remove("invisible");
tooltipEl.classList.add("opacity-100", "visible"); tooltipEl.classList.add("visible");
}
// Enable the event listeners // Enable the event listeners
popperInstance.setOptions((options) => ({ popperInstance.setOptions((options) => ({
@ -268,11 +267,10 @@ function runTooltip(tooltipToggleEl) {
} }
function hide() { function hide() {
if (tooltipEl.classList.contains("opacity-100", "visible")) { tooltipEl.classList.remove("opacity-100");
tooltipEl.classList.remove("opacity-100", "visible"); tooltipEl.classList.add("opacity-0");
} else { tooltipEl.classList.remove("visible");
tooltipEl.classList.add("opacity-0", "invisible"); tooltipEl.classList.add("invisible");
}
// Hide the tooltip // Hide the tooltip
// Disable the event listeners // Disable the event listeners

View File

@ -17,7 +17,7 @@
accept-charset="{{ $acceptCharset }}" accept-charset="{{ $acceptCharset }}"
@endif @endif
@submit.prevent="{{ $submit }}" @submit.prevent="{{ $submit }}"
@keydown="form.errors ? form.errors.clear($event.target.name) : null" @keydown="form.errors.clear($event.target.name)"
{{ $attributes }} {{ $attributes }}
> >
@csrf @csrf