Skip to content

Instantly share code, notes, and snippets.

@k3n
Last active April 22, 2016 19:55
Show Gist options
  • Save k3n/306f8529523456589a30d49ce36df7da to your computer and use it in GitHub Desktop.
Save k3n/306f8529523456589a30d49ce36df7da to your computer and use it in GitHub Desktop.
1.12.2 regression?
import Ember from 'ember';
export default Ember.Controller.extend({});
<h4>In Ember 1.12 (only), the <code>type</code> attribute must be all lowercase for the <code>input</code> helper to recognize it</h4>
<table>
<tr>
<th>Handlebars</th>
<th>Result</th>
</tr>
<tr>
<td colspan="2" style="text-align: center"></td>
</tr>
<tr>
<td><code>type="password"</code></td>
<td>{{input type="password" value="password"}}</td>
</tr>
<tr>
<td><code>type="PASSWORD"</code></td>
<td>{{input type="PASSWORD" value="password"}}</td>
</tr>
<tr>
<td colspan="2" style="text-align: center">&nbsp;</td>
</tr>
<tr>
<td><code>type="button"</code></td>
<td>{{input type="button" value="button"}}</td>
</tr>
<tr>
<td><code>type="BUTTON"</code></td>
<td>{{input type="BUTTON" value="button"}}</td>
</tr>
<tr>
<td colspan="2" style="text-align: center">&nbsp;</td>
</tr>
<tr>
<td><code>type="radio"</code></td>
<td>{{input type="radio" value="radio"}}</td>
</tr>
<tr>
<td><code>type="RADIO"</code></td>
<td>{{input type="RADIO" value="RADIO"}}</td>
</tr>
<tr>
<td colspan="2" style="text-align: center">&nbsp;</td>
</tr>
<tr>
<td><code>type="checkbox"</code></td>
<td>{{input type="checkbox"}}</td>
</tr>
<tr>
<td><code>type="CHECKBOX"</code></td>
<td>{{input type="CHECKBOX"}}</td>
</tr>
</table>
{
"version": "0.7.2",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "1.12.2",
"ember-data": "https://cdnjs.cloudflare.com/ajax/libs/ember-data.js/2.4.3/ember-data.js",
"ember-template-compiler": "1.12.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment