pds-dev-kit-web 2.2.227 → 2.2.228

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -70,15 +70,15 @@ function RichTextEditor(_a) {
70
70
  if (defaultText && defaultText.length === 0) {
71
71
  setCount(defaultText.length);
72
72
  }
73
- if (defaultText && defaultText.length !== 0 && editorRef.current) {
74
- handleEditorValueChange(defaultText, editorRef.current);
75
- }
76
73
  }, [defaultText]);
77
74
  var handleInit = function (evt, editor) {
78
75
  if (isLoadingUsed) {
79
76
  setIsEditorLoading(false);
80
77
  }
81
78
  editorRef.current = editor;
79
+ if (defaultText && defaultText.length !== 0) {
80
+ handleEditorValueChange(defaultText, editor);
81
+ }
82
82
  var isSourceCodeToolActive = toolbar.some(function (group) {
83
83
  var tools = group.split(' ');
84
84
  return tools.includes('code');
@@ -70,15 +70,15 @@ function RichTextEditor(_a) {
70
70
  if (defaultText && defaultText.length === 0) {
71
71
  setCount(defaultText.length);
72
72
  }
73
- if (defaultText && defaultText.length !== 0 && editorRef.current) {
74
- handleEditorValueChange(defaultText, editorRef.current);
75
- }
76
73
  }, [defaultText]);
77
74
  var handleInit = function (evt, editor) {
78
75
  if (isLoadingUsed) {
79
76
  setIsEditorLoading(false);
80
77
  }
81
78
  editorRef.current = editor;
79
+ if (defaultText && defaultText.length !== 0) {
80
+ handleEditorValueChange(defaultText, editor);
81
+ }
82
82
  var isSourceCodeToolActive = toolbar.some(function (group) {
83
83
  var tools = group.split(' ');
84
84
  return tools.includes('code');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web",
3
- "version": "2.2.227",
3
+ "version": "2.2.228",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
package/release-note.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # PDS-DEV-KIT-WEB Release Notes
2
- ## [v2.2.227]
2
+ ## [v2.2.228]
3
3
  ## daily|https://design.storybook.publ.biz/
4
4
 
5
5
  ### 업데이트 사항
6
- * [PDS-1356] RichTextEditor defaultText가 있을 때, 초기 진입 validation을 통과하지 못하는 현상 수정
6
+ * [PDS-1356] RichTextEditor 초기값 설정이 useEffect가 아닌 에디터 모듈의 초기화 함수로 수행하도록 수정