Skip to content

Conversation

@Abijeet
Copy link
Member

@Abijeet Abijeet commented Jun 17, 2018

Fixes #884

This is happening because -

Due to the limitations of modern JavaScript (and the abandonment of Object.observe), Vue cannot detect property addition or deletion. Since Vue performs the getter/setter conversion process during instance initialization, a property must be present in the data object in order for Vue to convert it and make it reactive.

Source: https://vuejs.org/v2/guide/reactivity.html

Also added padding to the icons in the attachment section.

Before
attachment-edit-no-padding

After
attachment-edit-padding

Signed-off-by: Abijeet abijeetpatro@gmail.com

Fixes #884

This is happening because -

Due to the limitations of modern JavaScript (and the abandonment of Object.observe), Vue cannot detect property addition or deletion. Since Vue performs the getter/setter conversion process during instance initialization, a property must be present in the data object in order for Vue to convert it and make it reactive.

Source: https://vuejs.org/v2/guide/reactivity.html

Also added padding to the icons in the attachment section.

Signed-off-by: Abijeet <abijeetpatro@gmail.com>
@Abijeet Abijeet requested a review from ssddanbrown June 17, 2018 08:54
@Abijeet Abijeet self-assigned this Jun 17, 2018
@Abijeet Abijeet added this to the BookStack Beta v0.23.0 milestone Jun 17, 2018
Copy link
Member

@ssddanbrown ssddanbrown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Abijeet Ah, Yeah, I've made this same mistake a few times before. Tested, All works. Thanks for the design fixes as well. Feel free to merge. 👍

@Abijeet Abijeet merged commit 448068e into master Jun 17, 2018
@ssddanbrown ssddanbrown deleted the fix/884 branch December 16, 2018 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants