Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Ember from 'ember';
- export default Ember.Component.extend({
- actions: {
- emailInput(event) {
- const $input = $(event.target);
- const value = $input.val();
- const withoutSpaces = value.replace(/\s+/g, '');
- this.set('email', withoutSpaces);
- $input.val(withoutSpaces);
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement