diff --git a/src/__tests__/App.spec.ts b/src/__tests__/App.spec.ts
index 15cb545e..f1a083c2 100644
--- a/src/__tests__/App.spec.ts
+++ b/src/__tests__/App.spec.ts
@@ -93,8 +93,6 @@ describe("App Component", () => {
});
it("should apply correct CSS classes", () => {
- const wrapper = mount(App);
-
// The App component itself doesn't have the 'app' class, it's on the #app element
const appElement = document.getElementById("app");
expect(appElement?.className).toContain("app");
@@ -163,9 +161,6 @@ describe("App Component", () => {
it("should not throw errors for undefined route names", async () => {
mockRoute.name = undefined;
-
- const wrapper = mount(App);
-
// Should not throw error
expect(() => {
vi.advanceTimersByTime(500);
@@ -174,9 +169,6 @@ describe("App Component", () => {
it("should handle null route names", async () => {
mockRoute.name = null;
-
- const wrapper = mount(App);
-
// Should not throw error
expect(() => {
vi.advanceTimersByTime(500);
diff --git a/src/components/Graph/Selector.vue b/src/components/Graph/GraphSelector.vue
similarity index 100%
rename from src/components/Graph/Selector.vue
rename to src/components/Graph/GraphSelector.vue
diff --git a/src/components/Graph/Legend.vue b/src/components/Graph/Legend.vue
index 4cb566c9..38172839 100644
--- a/src/components/Graph/Legend.vue
+++ b/src/components/Graph/Legend.vue
@@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. -->
-
import { computed, ref, watch } from "vue";
import type { PropType } from "vue";
import type { Option } from "@/types/app";
- import Selector from "./Selector.vue";
+ import GraphSelector from "./GraphSelector.vue";
const props = defineProps({
data: {
diff --git a/src/components/Radio.vue b/src/components/Radio.vue
index 3f96381b..17e21593 100644
--- a/src/components/Radio.vue
+++ b/src/components/Radio.vue
@@ -20,7 +20,7 @@ limitations under the License. -->
diff --git a/src/components/SelectSingle.vue b/src/components/SelectSingle.vue
index 796df39b..d4b80451 100644
--- a/src/components/SelectSingle.vue
+++ b/src/components/SelectSingle.vue
@@ -64,6 +64,18 @@ limitations under the License. -->
selected.value = { label: "", value: "" };
emit("change", "");
}
+
+ document.body.addEventListener("click", handleClick, false);
+
+ function handleClick() {
+ visible.value = false;
+ }
+
+ function setPopper(event: MouseEvent) {
+ event.stopPropagation();
+ visible.value = !visible.value;
+ }
+
watch(
() => props.value,
(data) => {
@@ -71,15 +83,6 @@ limitations under the License. -->
selected.value = opt || { label: "", value: "" };
},
);
- document.body.addEventListener("click", handleClick, false);
-
- function handleClick() {
- visible.value = false;
- }
- function setPopper(event: MouseEvent) {
- event.stopPropagation();
- visible.value = !visible.value;
- }