console error fixed
This commit is contained in:
parent
6d43a4fa96
commit
41fbca6725
18
public/akaunting-js/generalAction.js
vendored
18
public/akaunting-js/generalAction.js
vendored
@ -246,10 +246,11 @@ function runTooltip(tooltipToggleEl) {
|
|||||||
|
|
||||||
function show() {
|
function show() {
|
||||||
// Make the tooltip visible
|
// Make the tooltip visible
|
||||||
tooltipEl.classList.remove("opacity-0");
|
if (tooltipEl.classList.contains("opacity-0", "invisible")) {
|
||||||
tooltipEl.classList.add("opacity-100");
|
tooltipEl.classList.remove("opacity-0", "invisible");
|
||||||
tooltipEl.classList.remove("invisible");
|
} else {
|
||||||
tooltipEl.classList.add("visible");
|
tooltipEl.classList.add("opacity-100", "visible");
|
||||||
|
}
|
||||||
// Enable the event listeners
|
// Enable the event listeners
|
||||||
|
|
||||||
popperInstance.setOptions((options) => ({
|
popperInstance.setOptions((options) => ({
|
||||||
@ -267,11 +268,12 @@ function runTooltip(tooltipToggleEl) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function hide() {
|
function hide() {
|
||||||
tooltipEl.classList.remove("opacity-100");
|
|
||||||
tooltipEl.classList.add("opacity-0");
|
|
||||||
tooltipEl.classList.remove("visible");
|
|
||||||
tooltipEl.classList.add("invisible");
|
|
||||||
// Hide the tooltip
|
// Hide the tooltip
|
||||||
|
if (tooltipEl.classList.contains("opacity-100", "visible")) {
|
||||||
|
tooltipEl.classList.remove("opacity-100", "visible");
|
||||||
|
} else {
|
||||||
|
tooltipEl.classList.add("opacity-0", "invisible");
|
||||||
|
}
|
||||||
// Disable the event listeners
|
// Disable the event listeners
|
||||||
|
|
||||||
popperInstance.setOptions((options) => ({
|
popperInstance.setOptions((options) => ({
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
accept-charset="{{ $acceptCharset }}"
|
accept-charset="{{ $acceptCharset }}"
|
||||||
@endif
|
@endif
|
||||||
@submit.prevent="{{ $submit }}"
|
@submit.prevent="{{ $submit }}"
|
||||||
@keydown="form.errors.clear($event.target.name)"
|
@keydown="form.errors ? form.errors.clear($event.target.name): null"
|
||||||
{{ $attributes }}
|
{{ $attributes }}
|
||||||
>
|
>
|
||||||
@csrf
|
@csrf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user