Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mocking input event for controlled inputs in react #51

Open
briantingtc opened this issue May 3, 2019 · 13 comments
Open

Mocking input event for controlled inputs in react #51

briantingtc opened this issue May 3, 2019 · 13 comments
Labels

Comments

@briantingtc
Copy link

This extension works in a way that leads to unexpected behaviour when used in a react controlled input. Currently this extension assigns the value to the dom element without dispatching/triggering an event:
app/scripts/ate.js(ln.343)

textInput.value = replaceText(
  textInput.value,
  shortcut,
  autotext,
  cursorPosition
);

Here's a fiddle illustrating the problem: JS Fiddle example

and a rudimentary fix I made to get this working:
briantingtc@76d8ad5

Let me know if we could get something like the above commit merged in or whether or if adding custom behaviour for a specific domain would be possible.

@carlinyuen
Copy link
Collaborator

carlinyuen commented May 3, 2019 via email

@briantingtc
Copy link
Author

Thanks Carlin, let me know if there's anything I can do to help -- and congrats on getting hitched!

@wdoug
Copy link

wdoug commented Jun 20, 2019

Hey @carlinyuen we are running into this same issue with some of our users. Is there any way that we could help getting a fix merged?

@carlinyuen
Copy link
Collaborator

carlinyuen commented Jun 21, 2019 via email

@carlinyuen
Copy link
Collaborator

Hey folks, confirming that I'm looking into this now. Thanks for being patient! Life got busy, not a great excuse. :P

@carlinyuen carlinyuen added the bug label Jun 25, 2019
@ghbeckman
Copy link

ghbeckman commented Jun 25, 2019

Hey @carlinyuen, wondering if you guys can push the most recent (2.0) version to the chrome web store.. I kinda rely on this for my daily activities and now with improvements in iframe support it would really help me out. thanks!

@carlinyuen
Copy link
Collaborator

Hey @ghbeckman workin' on it. :)
With the iframe change, I have to retest some of the code to make sure the extension still works in the same input fields. Hopefully can have this out for some of you folks by July 4th.

Actually, it'd really help to have a bunch of you test the changes for me on some of the sites you use. Please let me know if any of you would be interested in joining some sort of "dogfood" group. I'd create a Google group and basically send an early version of the extension to you, would just need you to test it on whatever product you already use it on, to make sure it's not busted.

@briantingtc
Copy link
Author

I'd be down, lmk how I can help

@ghbeckman
Copy link

@carlinyuen Absolutely! Glad to help in anyway possible. Thanks for your effort. Appreciate it

@carlinyuen
Copy link
Collaborator

Hey folks, thanks for being great sports. Sincere apologies, life got in the way again. :( I'm going to try and get back into this this weekend.

@briantingtc
Copy link
Author

briantingtc commented Jan 9, 2020

Sorry to poke you again @carlinyuen as I know you're super busy but we'll be needing this plugin to work with one of our features. If I create a pr with specific behavior for our domain would you consider merging that in? Otherwise would it be okay if we re hosted the plugin with that specific change?

e: I just rebased to the latest version on this repo and it had the fix that I needed. The manifest was updated to be 2.0.0 but the version on the chrome extension store is 1.9.5. Does the latest version just need to be pushed up? https://chrome.google.com/webstore/detail/auto-text-expander-for-go/iibninhmiggehlcdolcilmhacighjamp?hl=en-US

@dcfranca
Copy link

dcfranca commented Sep 3, 2020

Any update on this? it's important for me thais fix as well

@ethelwulf13
Copy link

There is any plan to update to Manifest 3.0 ? This extension is great but now google says it may soon no longer be supported :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants