Skip to content

Commit 4c0407e

Browse files
committed
test(segment-view): fix test
1 parent 9103c40 commit 4c0407e

File tree

1 file changed

+3
-2
lines changed
  • core/src/components/segment-view/test/basic

1 file changed

+3
-2
lines changed

core/src/components/segment-view/test/basic/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,12 @@
130130
</ion-footer>
131131

132132
<script>
133-
let currentValue;
134-
135133
function changeSegmentContent() {
134+
const segment = document.querySelector('#noValueSegment');
136135
const segmentView = document.querySelector('#noValueSegmentView');
137136

137+
let currentValue = segment.value;
138+
138139
if (currentValue === 'value') {
139140
currentValue = 'no';
140141
} else {

0 commit comments

Comments
 (0)