Git Product home page Git Product logo

Comments (9)

pboivin avatar pboivin commented on July 21, 2024 1

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.

pboivin avatar pboivin commented on July 21, 2024

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.

lotarbo avatar lotarbo commented on July 21, 2024

@pboivin thank you. all i found - recommends using postMessage to communicate between windows

from filament-peek.

pboivin avatar pboivin commented on July 21, 2024

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.

lotarbo avatar lotarbo commented on July 21, 2024

@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.

lotarbo avatar lotarbo commented on July 21, 2024

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.

pboivin avatar pboivin commented on July 21, 2024

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.

lotarbo avatar lotarbo commented on July 21, 2024

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.

pboivin avatar pboivin commented on July 21, 2024

Thanks @lotarbo

from filament-peek.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.