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

Pressing enter to send message only works after button interaction #19

Open
chrillewoodz opened this issue Sep 8, 2015 · 0 comments
Open

Comments

@chrillewoodz
Copy link

I have a textarea where I'm using a custom ng-enter to call a sendMessage function when I press enter, but after adding the popup I can no longer press enter to send the message.. How can I make sure that the enter button calls the function I want after the contenteditable area has appeared?

I tried setting it on the wrapping div that becomes the contenteditable area but pressing enter only works after I've inserted an emoji by clicking the button:

<div emoji-form emoji-message="emojiMessage" ng-enter="sendMessage(chat, chat.emojiMessage)">
        <textarea ng-model="chat.emojiMessage"></textarea>
    <button id="emojibtn">
        <i class="icon icon-emoji"></i>
    </button>
</div>

Is there a way to fix this?

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

No branches or pull requests

1 participant