Skip to content

Instantly share code, notes, and snippets.

@hakilebara
Created December 20, 2018 10:19
Show Gist options
  • Save hakilebara/bddd26d51b6fd1c2857134cc468e0562 to your computer and use it in GitHub Desktop.
Save hakilebara/bddd26d51b6fd1c2857134cc468e0562 to your computer and use it in GitHub Desktop.
ember-focus-trapper bug
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
{{#focus-trapper disable=false cycle=true}}
<form action="">
<label>You must fill out this input field: <input type="text"></label>
<label>And this input field: <input type="text"></label>
<button tabindex="0">
<span tabindex="-1">
button
</span>
</button>
</form>
{{/focus-trapper}}
{
"version": "0.15.1",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js",
"ember": "3.4.3",
"ember-template-compiler": "3.4.3",
"ember-testing": "3.4.3"
},
"addons": {
"ember-data": "3.4.2",
"ember-focus-trapper": "0.0.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment