B
B
BonBon Slick2022-02-10 16:21:43
JavaScript
BonBon Slick, 2022-02-10 16:21:43

How to update input state in redux using external, console js?

Goal: update the value of the input with an external script to automate data entry on sites, on clicking the button, the update occurs in the handleClick method ( codepen ), but the Redux state remains the same.
Simple editing of the dom will obviously not work, so I'm trying to edit the DOM and trigger events that will be followed by a state update, but so far without results.
How to reproduce:
1 - enter any string in the field
2 - press the button
3 - the length of the text should be the length of the current value of the input after pressing the button, the word test is hardcoded there, which means the length should be 4, but the length of the old text

remains
https://stackoverflow.com/questions/23892547/what-...
https://stackoverflow.com/questions/51042660/input...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question