This repository has been archived by the owner on Sep 4, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Fixed issue with excessive chars inside model data - Simplified directive by removing custom event listeners
- Loading branch information
Max Lyashuk
committed
Apr 2, 2017
1 parent
43e3e3e
commit 9fdbd0e
Showing
2 changed files
with
34 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* Notifies Vue about internal value change | ||
* @see https://github.com/vuejs/Discussion/issues/157#issuecomment-273301588 | ||
* | ||
* @param {HTMLInputElement} el | ||
* @param {String} type | ||
*/ | ||
export const trigger = (el, type) => { | ||
const e = document.createEvent('HTMLEvents'); | ||
e.initEvent(type, true, true); | ||
el.dispatchEvent(e) | ||
}; |