μΌλΆ νμ μ λ¨Όμ μ λ ₯μ μ΄μ μ λ§μΆ°μΌ ν©λλ€. iOSμμ μ μλνλμ§ ν μ€νΈν΄μΌ ν©λλ€.
νμ μ μ΄λ―Έ μ λ ₯μ λ¨Όμ μ΄μ μ λ§μΆ₯λλ€. κ·Έλ¬λ μ¬κΈ°μλ λ²κ·Έκ° μμ΅λλ€. νμ μ νμ LAST μ λ ₯ μμμ μ΄μ μ λ§μΆ₯λλ€. μ λ§ λ¨Όμ μ§μ€ν΄μΌ ν©λλ€.
ν¬λΌ : http://forum.ionicframework.com/t/popup-with-multiple-text-input-fields-always-focuses-on-2nd-input/4956/2
μν : http://codepen.io/calendee/pen/duvsl?editors=101
λͺ λΆ νμ PRμ΄ μ¬ κ²μ λλ€.
λλ μ΄κ²μ΄ μΉμμλ νλ₯νκ² μλνμ§λ§ iOSμμλ κ·Έλ μ§ μλ€λ κ²μ μμμ΅λλ€. μ½λλ μ€νλμ§λ§ μ λ ₯μ΄ μ΄μ μ λ§μΆμ§ μκ±°λ ν€λ³΄λκ° μ΄λ¦¬μ§ μμ΅λλ€.
@michaelnatkin : config.xmlμμ λ€μ μ€μ μ΄ μλμ§ νμΈνμμμ€.
<preference name="KeyboardDisplayRequiresUserAction" value="false" />
iOSλ μ΄κ²μ΄ falseλ‘ μ€μ λμ§ μλ ν νλκ° ν¬μ»€μ€λ₯Ό μ»κ³ ν€λ³΄λλ₯Ό μ΄λλ‘ νμ©νμ§ μμ΅λλ€.
@calendee OMG κ°μ¬ν©λλ€!! λ¬Έμ ν΄κ²°λ¨. Ionic νμ ν΄λΉ λ©λͺ¨λ₯Ό ionicPopup λ¬Έμμ μΆκ°νλ κ²μ΄ μ’μ΅λλ€.
@calendee iOSμμλ μλνμ§λ§ Android κΈ°κΈ°μμλ μλνμ§ μμ΅λλ€. μλλ©΄ λ΄κ° μμ΄ λ²λ¦° κ²μ΄ μμ΅λκΉ?
@felquis , λλ κ°μ λ¬Έμ κ°μμμ΅λλ€. μ΄ λ¬Έμ μ #1176μ μ΄ν΄λ³Έ ν κ²°κ΅ https://github.com/driftyco/ionic/commit/49a295638d6c60b7e17936cfb345665f6b1954d1 μ μ°Ύμκ³ μλ μ΄μ μ λ ₯μ΄ μλ ν νλ¦Ώμ μ¬μ©νμ¬ μ ν리μΌμ΄μ μ μμ ν μ μμμ΅λλ€.
diff --git a/www/js/app.js b/www/js/app.js
index 8e7afcd..1131dfb 100644
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -57,6 +57,7 @@ angular.module('todo', ['ionic'])
$scope.newProject = function() {
$ionicPopup.prompt({
title: 'Project name',
+ template: '<input autofocus>'
})
.then(createProject)
};
μλ μ΄μ μ μ¬μ©νλ €λ©΄ μ΄ ν νλ¦Ώ λ¬Έμμ΄μ ν둬ννΈμ μΆκ°ν΄μΌ νμ΅λλ€.
template: '<input ng-model="data.response" type="text" placeholder="{{ placeHolder }}" autofocus>'
κ°μ₯ μ μ©ν λκΈ
μλ μ΄μ μ μ¬μ©νλ €λ©΄ μ΄ ν νλ¦Ώ λ¬Έμμ΄μ ν둬ννΈμ μΆκ°ν΄μΌ νμ΅λλ€.
template: '<input ng-model="data.response" type="text" placeholder="{{ placeHolder }}" autofocus>'