Comments (9)
Yes, unfortunately this is part of the issue I was trying to solve in v1.1.1
. allowIframePointerEvents
will not work with a preview URL because it's trying to inject some CSS into the page. I'll add it to the documentation. A simple solution would be to add some CSS in your preview component:
<style>
body.is-preview a { pointer-events: none !important; }
</style>
from filament-peek.
Hey @lotarbo, thank you for reporting this, I'll try to replicate it on my end tomorrow. I'll let you know if I find a solution.
from filament-peek.
@pboivin thank you. all i found - recommends using postMessage to communicate between windows
from filament-peek.
Hey @lotarbo, I just tagged v1.1.1 with a fix regarding external URLs for previews. When you have some time, can you give this a quick test and let me know if it works for you?
from filament-peek.
@pboivin thank you. Right now, i don't have errors in console)
But preview still doesn't work in safari. Next.js project hosted on Netlify and uses default preview code from docs. And i saw, Safari can't install Next.js cookies in iframe, that's why i have 404 error i think.
And right now i dont understand, this is problem with iframe, nextjs or headers from both servers(
from filament-peek.
Sorry, i think i found, problem only with safari) https://community.prismic.io/t/troubleshooting-previews/5449#previews-not-working-in-safari-14
from filament-peek.
Thanks for looking into this! So, does the solution in the page you shared solve the problem for you? I think I'm not able to replicate because I'm not using cookies to handle previews on my projects.
from filament-peek.
It helps)
But i have small question: in chrome and safari i can interact with preview frame, but in config i have this
'allowIframePointerEvents' => false,
, its normal behavior? Because i this option should prevent interaction
from filament-peek.
Thanks @lotarbo
from filament-peek.
Related Issues (13)
- Issue with Livewire component inside of preview template HOT 2
- Relationships are being persisted when the preview modal opens
- Can't preview uploaded image on Create page HOT 1
- Scrolling Not Allowed By Default HOT 3
- Can't use ListPreviewAction with relation manager
- Preview overflowing the viewport on iphone mini
- Remove greedy selector in preview modal style
- not working in view page. HOT 1
- Editor sidebar is not resizable when using RTL locale
- [1.x] Add JS hooks around the preview modal open/close actions
- Issues with Builder Preview HOT 2
- Error with Builder field previews and auto-refresh option
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 filament-peek.