Fix small optimization issue that suddenly popped up
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-04-20 11:11:38 +02:00
parent fdc9b1a82f
commit e4cc2c31ec

View File

@@ -41,6 +41,11 @@ function doRender() {
}
}
}
function onClick() {
label.update();
doRender();
}
</script>
<template>
@@ -62,7 +67,7 @@ function doRender() {
<button
class="px-4 py-2 bg-blue-500 rounded-lg hover:bg-blue-600 text-white border-2 active:border-blue-500 focus:outline focus:outline-2 focus:outline-blue-500"
@click="label.update() && doRender()"
@click="onClick"
>
{{ label.label.value }}
</button>