Comments (7)
Manually building on mount indeed circumvents this problem in my case - the widget no longer disappears.
For my specific needs this issue is resolved and can be closed. Tell me if you need further tests.
from pretix.
You do not have any products/tickets to sell in your event, so the widget does not show anything. Not sure we should change that behaviour. But I guess we could log a message to the browser console. I will discuss with the team.
from pretix.
Not sure that's the full issue, the widget should at least render its border and "powered by pretix". Even if that is hidden by CSS, but I don't even see it in the DOM on the linked page.
from pretix.
Huh, it did show the „powered by pretix“ when I looked at it yesterday!? Strange.
from pretix.
It gets better: when I reload, it shows the box with „powered by pretix“. Reload again, it does not. I will look into this.
from pretix.
I think it has something to do with docReady and how svelte sets up things. Whenever the widget is not loaded and I execute window.PretixWidget.buildWidgets();
on the console, everything works. You might want to try to not automatically build the widgets, but do it manually in your svelte mounted callback (or whatever that is called). For how to manually build the widgets, see https://docs.pretix.eu/en/latest/user/events/widget.html#dynamically-loading-the-widget
from pretix.
Having a ticket available indeed fixes it.
The visibility of the empty box (it does have the "Event-Ticketing-Software von pretix" link at the bottom) depends on the browser and my guess is that it is due to the DOM tree shaking frameworks like svelte or vue do. That is just a wild guess though. I will give the manual setup a try.
Having an empty box as soon as contingents run out or deadlines pass really limits the versatility of the widget, so having at least some "There are no available tickets at the moment, if you have a voucher code click here..." message would greatly improve things from the user perspective.
from pretix.
Related Issues (20)
- Configured region not honored with de-informal language HOT 3
- Datepicker does not respect locale on first load HOT 1
- Buttons not clearing correctly for additional products with an amount limit HOT 1
- Webhooks - pretix.event.checkin, triggered on both Entry and Exit scans HOT 3
- Ad an "additional product" to an order even if it not intendet HOT 1
- Customer's phoner number is not available in API
- Allow setting DISABLE_SERVER_SIDE_CURSORS for PostgreSQL configurations HOT 3
- Docker installation SElinux
- Docker installation SElinux HOT 1
- Empty product list in waitinglist register form HOT 1
- Country is cleared
- Customer address on invoice missing HOT 4
- failed to find column "public"."pretixbase_eventmetaproperty"."allowed_values" in target table HOT 2
- CSRF Error for Custom Event Domains HOT 2
- Time machine problem with product variants HOT 1
- Confusing invoice text for SEPA direct debit orders HOT 2
- Pretix hangs indefinitely while attempting to reserve products HOT 3
- Order position ticket download: can return 500 instead of 409 Conflict HOT 5
- Stripe Payment API deprecated (no payments possible)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pretix.