question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Control from external elements

See original GitHub issue

I’m building a simple touchscreen interface that uses some divs arranged as a number pad (like a telephone) to change the value of the phone input field in addition to the hardware keyboard. Since this library cleans up numbers before they hit my onChange function, I’d love a way to hook into that same parsing function that exists in the instance of PhoneInput that is already in my component. Does something like this exist? If not, what’s my best option for making my external phone number input controls behave like onChange events natively originating inside of the input inside PhoneInput?

Sorry if this is unclear, let me know if you need more explanation.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
subvertallchriscommented, Mar 22, 2019

Got it, thank you. I’ll stick with what I have but it might be worth adding this behavior. It would be very helpful for myself and others.

0reactions
catamphetaminecommented, Jan 1, 2020

A sidenote: version 3.x has been released, that forwards ref to the <input/>. Perhaps hypothetically theoretically something like emulating change event could be used in such situations: https://stackoverflow.com/questions/2856513/how-can-i-trigger-an-onchange-event-manually

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Is an External Control? Definition and Examples - Indeed
External controls specifically focus on regulating on a company's governance policies, such as hiring policies and safety procedures.
Read more >
How to interpret clause 7.1.5 Control of external elements of ...
This can be done by taking ownership of such resources, and adapting them to suit and integrating them into your FSMS. Such resources...
Read more >
How do we control external factors that affect us? - Quora
Typically external control factors are called as noise factors. They can not b controlled but their impact can b minimised thru strategic initiatives....
Read more >
External Factors | Organizational Behavior and Human ...
While external factors are outside of our control, they still influence us and create boundaries in which we need to operate. The same...
Read more >
How Internal and External Factors Drive Organizational Change
The external environment are those factors that occur outside of the company that cause change inside organizations and are, for the most ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found