mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Update ember-one-way-controls to version 2.0.0 🚀 (#475)
* chore(package): update ember-one-way-controls to version 2.0.0 * update yarn.lock * update `gh-trim-focus-input` for removal of `sanitizeInput` in `ember-one-way-controls`
This commit is contained in:
parent
333ed66776
commit
c26b6fa04f
3 changed files with 14 additions and 10 deletions
|
@ -31,12 +31,16 @@ const TrimFocusInputComponent = GhostInput.extend({
|
||||||
this._focus();
|
this._focus();
|
||||||
},
|
},
|
||||||
|
|
||||||
sanitizeInput(input) {
|
focusOut(event) {
|
||||||
if (input && typeof input.trim === 'function') {
|
this._trimInput(event.target.value);
|
||||||
return input.trim();
|
},
|
||||||
} else {
|
|
||||||
return input;
|
_trimInput(value) {
|
||||||
|
if (value && typeof value.trim === 'function') {
|
||||||
|
value = value.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this._processNewValue(value);
|
||||||
},
|
},
|
||||||
|
|
||||||
_focus() {
|
_focus() {
|
||||||
|
|
|
@ -68,7 +68,7 @@
|
||||||
"ember-load": "0.0.11",
|
"ember-load": "0.0.11",
|
||||||
"ember-load-initializers": "0.6.3",
|
"ember-load-initializers": "0.6.3",
|
||||||
"ember-myth": "0.1.1",
|
"ember-myth": "0.1.1",
|
||||||
"ember-one-way-controls": "1.1.2",
|
"ember-one-way-controls": "2.0.0",
|
||||||
"ember-power-select": "1.2.0",
|
"ember-power-select": "1.2.0",
|
||||||
"ember-resolver": "2.1.1",
|
"ember-resolver": "2.1.1",
|
||||||
"ember-route-action-helper": "2.0.2",
|
"ember-route-action-helper": "2.0.2",
|
||||||
|
|
|
@ -2362,11 +2362,11 @@ ember-new-computed@^1.0.0, ember-new-computed@^1.0.2:
|
||||||
dependencies:
|
dependencies:
|
||||||
ember-cli-babel "^5.1.5"
|
ember-cli-babel "^5.1.5"
|
||||||
|
|
||||||
ember-one-way-controls@1.1.2:
|
ember-one-way-controls@2.0.0:
|
||||||
version "1.1.2"
|
version "2.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/ember-one-way-controls/-/ember-one-way-controls-1.1.2.tgz#9ebaba62bb43bf3d5e680f0d13b996353e47ce6d"
|
resolved "https://registry.yarnpkg.com/ember-one-way-controls/-/ember-one-way-controls-2.0.0.tgz#7a79f1a56094c44fe1012fd0f9b75bd92d136fe9"
|
||||||
dependencies:
|
dependencies:
|
||||||
ember-cli-babel "^5.1.6"
|
ember-cli-babel "^5.1.7"
|
||||||
ember-cli-htmlbars "^1.0.10"
|
ember-cli-htmlbars "^1.0.10"
|
||||||
ember-get-helper "~1.1.0"
|
ember-get-helper "~1.1.0"
|
||||||
ember-invoke-action "1.4.0"
|
ember-invoke-action "1.4.0"
|
||||||
|
|
Loading…
Add table
Reference in a new issue