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

change timing of generate link text #2673

Conversation

fezzlk
Copy link
Contributor

@fezzlk fezzlk commented Aug 19, 2020

リンクテキストプレビュー表示のために、テキスト生成タイミングを、「モーダルのdoneボタン押下」から「モーダル内の選択内容変更時」に変更

@@ -174,6 +177,12 @@ class LinkEditModal extends React.PureComponent {
this.setState({ markdown, permalink });
}

getLinkTextPreview() {
Copy link
Member

Choose a reason for hiding this comment

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

getHoge と命名する場合は、必ず return する。
今回のように「生成してStateにセットする」ような場合は「generateAndSetHoge」とか「initHoge」とかにする。

@fezzlk fezzlk merged commit 2b9a78e into imprv/enhance-link-edit-feature-for-merge Aug 28, 2020
@fezzlk fezzlk deleted the imprv/move-timing-to-generate-link-text branch August 28, 2020 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants