File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ export class PageEditor extends Component {
25
25
this . draftDisplayIcon = this . $refs . draftDisplayIcon ;
26
26
this . changelogInput = this . $refs . changelogInput ;
27
27
this . changelogDisplay = this . $refs . changelogDisplay ;
28
+ this . changelogCounter = this . $refs . changelogCounter ;
28
29
this . changeEditorButtons = this . $manyRefs . changeEditor || [ ] ;
29
30
this . switchDialogContainer = this . $refs . switchDialog ;
30
31
this . deleteDraftDialogContainer = this . $refs . deleteDraftDialog ;
@@ -77,8 +78,7 @@ export class PageEditor extends Component {
77
78
const updateChangelogDebounced = debounce ( this . updateChangelogDisplay . bind ( this ) , 300 , false ) ;
78
79
this . changelogInput . addEventListener ( 'input' , ( ) => {
79
80
const count = this . changelogInput . value . length ;
80
- const counterEl = document . getElementById ( 'changelog-count' ) ;
81
- if ( counterEl ) counterEl . innerText = `${ count } / 250` ;
81
+ this . changelogCounter . innerText = `${ count } / 180` ;
82
82
updateChangelogDebounced ( ) ;
83
83
} ) ;
84
84
Original file line number Diff line number Diff line change @@ -104,17 +104,17 @@ class="dropdown-container">
104
104
<span refs =" page-editor@changelogDisplay" >{{ trans (' entities.pages_edit_set_changelog' ) } } </span >
105
105
</button >
106
106
<ul refs =" dropdown@menu" class =" wide dropdown-menu" >
107
- <li class =" px-l py-m " >
107
+ <li class =" px-m py-s " >
108
108
<p class =" text-muted pb-s" >{{ trans (' entities.pages_edit_enter_changelog_desc' ) } } </p >
109
109
<textarea
110
110
refs =" page-editor@changelogInput"
111
111
name =" summary"
112
112
id =" summary-input"
113
113
rows =" 2"
114
- maxlength =" 250 "
114
+ maxlength =" 180 "
115
115
placeholder =" {{ trans (' entities.pages_edit_enter_changelog' ) } }"
116
116
></textarea >
117
- <small class =" text-muted mt-xs" id = " changelog-count " >0 / 250 </small >
117
+ <small refs = " page-editor@changelogCounter " class =" text-muted mt-xs" >0 / 180 </small >
118
118
</li >
119
119
</ul >
120
120
<span >{{-- Prevents button jumping on menu show --}} </span >
You can’t perform that action at this time.
0 commit comments