airyland / airyland/vux

A bug in the confirm component

Offen
#3,689 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Vue
Sterne
17.5k
Forks
3.6k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

There is a bug on the confirm component.

If I bind a variable `false` as v-model to the `Confirm` component, the variable will be initialized `undefined` instead of `false`, so I read the related source code:

in the 'src/components/confirm/index.vue'

```
created () {
this.showValue = this.show
if (this.value) {
this.showValue = this.value
}
},
```

`this.show` is not defined in this file.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Start in src/components/confirm/index.vue and inspect the created hook and the v-model value flow. Reproduce the case where v-model is bound to false, then verify that the bound value remains false after initialization and run the relevant component checks available in the repository.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript
Bereich
frontend
Issue-Typ
Bug
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.