mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
rework @watch decorator
This commit is contained in:
@@ -49,6 +49,10 @@ export default class SlQrCode extends LitElement {
|
||||
@watch('size')
|
||||
@watch('value')
|
||||
generate() {
|
||||
if (!this.hasUpdated) {
|
||||
return;
|
||||
}
|
||||
|
||||
QrCreator.render(
|
||||
{
|
||||
text: this.value,
|
||||
|
||||
Reference in New Issue
Block a user