Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move EditorView delegate to initializer #126

Merged
merged 2 commits into from
Jan 4, 2022
Merged

Conversation

bjtitus
Copy link
Collaborator

@bjtitus bjtitus commented Dec 31, 2021

In #122 we tried to move calls to EditorView.setupViews until later in the view cycle in order to ensure the delegate property was set so that methods like getQuickPostButton would be available at the appropriate time.

This caused some unintended side effects for view set up and produced a blank screen for the editor.

Instead, we'll revert to an older iteration where the delegate is passed it at initialization time to ensure it exists before the existing setupViews call is made.

Copy link
Collaborator

@adriana-elizondo adriana-elizondo left a comment

Choose a reason for hiding this comment

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

lgtm and works well! 🎉

@bjtitus bjtitus merged commit 7652d66 into main Jan 4, 2022
@bjtitus bjtitus deleted the editor-view-delegate branch January 4, 2022 20:33
@bjtitus bjtitus restored the editor-view-delegate branch January 4, 2022 20:36
@bjtitus bjtitus deleted the editor-view-delegate branch July 8, 2022 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants