Tabbed SVG diagrams cause issues on IE
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-function controller() {
+function controller($timeout) {
const vm = this;
vm.show = (diagram) => {
- diagram.visible = true;
+ // timeout needed to prevent IE from crashing
+ $timeout(() => diagram.visible = true, 100);
};
vm.hide = (diagram) => {
@@ -29,6 +30,11 @@ function controller() {
}
+controller.$inject = [
+ '$timeout'
+];
+
+
export default {
template: require('./svg-diagrams.html'),
bindings: {
