Giter Site home page Giter Site logo

Synthetic Clicks Now Allowed? about reactjs.org HOT 4 OPEN

abrdgrt avatar abrdgrt commented on April 27, 2024
Synthetic Clicks Now Allowed?

from reactjs.org.

Comments (4)

renaldodev avatar renaldodev commented on April 27, 2024

Synthetic clicks refer to a technique where a program simulates user clicks on a computer system, in the context of ReactJS or any other front-end framework, these are generally not a built-in feature or explicitly allowed practice. They typically refer to programmatically generated mouse clicks, often used for testing or malicious purposes like security exploits.

from reactjs.org.

abrdgrt avatar abrdgrt commented on April 27, 2024

Hanks for taking time out of your day to reply. I'm aware, to be specific I'm referring to clicks with the event - isTrusted set as false

Do you know the answer to the question I asked?

from reactjs.org.

renaldodev avatar renaldodev commented on April 27, 2024

ReactJS itself does not directly implement the generation of synthetic events with isTrusted set to false.
If you need to create a simulated event with isTrusted set to false in React, you would have to do it using plain JavaScript, outside the scope of React's built-in event handling system. This is because React's Synthetic Event system is not designed for creating artificial events but rather for handling real user interactions in a cross-browser compatible way.

from reactjs.org.

abrdgrt avatar abrdgrt commented on April 27, 2024

ReactJS itself does not directly implement the generation of synthetic events with isTrusted set to false. If you need to create a simulated event with isTrusted set to false in React, you would have to do it using plain JavaScript, outside the scope of React's built-in event handling system. This is because React's Synthetic Event system is not designed for creating artificial events but rather for handling real user interactions in a cross-browser compatible way.

I'll take it you do not understand the question I'm asking or you do not know the answer to it. It used to be that you couldn't use .click() on react websites in the past, websites like web.whatsapp.com could not be operated without using frameworks like puppeteer which supported synthetic clicks and sets them as trusted. It's no longer the case now, I am asking which version this came to be, why it was changed (so I'll know if I'm to expect a change like that in the future)

from reactjs.org.

Related Issues (20)

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.