From be7eb7b5444effe64eb42e999095bd0ced642cf9 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Sat, 2 Jun 2018 02:04:35 -0300 Subject: [PATCH] Removes collapse event binding from computed property function in TainacanFormItem (was causing a loop). Closes #57. --- src/classes/field-types/tainacan-form-item.vue | 14 ++++++-------- src/js/event-bus-web-components.js | 3 ++- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/classes/field-types/tainacan-form-item.vue b/src/classes/field-types/tainacan-form-item.vue index 768b4d44c..c09ccb15a 100644 --- a/src/classes/field-types/tainacan-form-item.vue +++ b/src/classes/field-types/tainacan-form-item.vue @@ -5,10 +5,10 @@ :type="fieldTypeMessage"> + @click="$emit('changeCollapse', fieldTypeMessage != 'is-danger' ? !isCollapsed : true)"> + :icon="isCollapsed || fieldTypeMessage == 'is-danger' ? 'menu-down' : 'menu-right'" />
errorItem.field_id == field_id ); return ( error ) ? error.errors : false },