@@ -9,7 +9,7 @@ const attachFormat = () => {
9
9
const logicalOperatorNewline = document . getElementById ( 'logicalOperatorNewline' ) ;
10
10
const aliasAs = document . getElementById ( 'aliasAs' ) ;
11
11
const multilineLists = document . getElementById ( 'multilineLists' ) ;
12
- const itemCount = document . getElementById ( 'multilineLists. itemCount' ) ;
12
+ const itemCount = document . getElementById ( 'multilineLists- itemCount' ) ;
13
13
const tabulateAlias = document . getElementById ( 'tabulateAlias' ) ;
14
14
const commaPosition = document . getElementById ( 'commaPosition' ) ;
15
15
const newlineBeforeOpenParen = document . getElementById ( 'newlineBeforeOpenParen' ) ;
@@ -20,6 +20,12 @@ const attachFormat = () => {
20
20
const newlineBeforeSemicolon = document . getElementById ( 'newlineBeforeSemicolon' ) ;
21
21
22
22
function format ( ) {
23
+ if ( multilineLists . options [ multilineLists . selectedIndex ] . value === 'itemCount' ) {
24
+ itemCount . style . display = 'inline' ;
25
+ } else {
26
+ itemCount . style . display = 'none' ;
27
+ }
28
+
23
29
try {
24
30
const config = {
25
31
language : language . options [ language . selectedIndex ] . value ,
@@ -31,7 +37,7 @@ const attachFormat = () => {
31
37
logicalOperatorNewline . options [ logicalOperatorNewline . selectedIndex ] . value ,
32
38
aliasAs : aliasAs . options [ aliasAs . selectedIndex ] . value ,
33
39
multilineLists :
34
- itemCount . value > 0
40
+ multilineLists . options [ multilineLists . selectedIndex ] . value === 'itemCount'
35
41
? itemCount . value
36
42
: multilineLists . options [ multilineLists . selectedIndex ] . value ,
37
43
tabulateAlias : tabulateAlias . checked ,
0 commit comments