Akryum / Akryum/vue-safe-teleport

Ability to clear teleport target before teleporting (don't append)

Aperta
#1 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
TypeScript
Stelle
81
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### Clear and concise description of the problem

Is it possible to clear the contents of the teleport target before teleporting fresh data

### Suggested solution

set a prop, something like clear on teleport or append false

something like this in setup will clear the target. maybe hook this up to a prop??
`document.getElementById(props.to.replace("#", "")).innerHTML = ""`

Obviously this will only work when using ids

### Alternative

_No response_

### Additional context

_No response_

### Validations

- [X] Read the [docs](https://github.com/Akryum/vue-safe-teleport).
- [X] Check that there isn't [already an issue](https://github.com/Akryum/vue-safe-teleport/issues) that reports the same bug to avoid creating a duplicate.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.