mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 18:54:11 +08:00
test(segment-view): fix test
This commit is contained in:
@ -130,11 +130,12 @@
|
|||||||
</ion-footer>
|
</ion-footer>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
let currentValue;
|
|
||||||
|
|
||||||
function changeSegmentContent() {
|
function changeSegmentContent() {
|
||||||
|
const segment = document.querySelector('#noValueSegment');
|
||||||
const segmentView = document.querySelector('#noValueSegmentView');
|
const segmentView = document.querySelector('#noValueSegmentView');
|
||||||
|
|
||||||
|
let currentValue = segment.value;
|
||||||
|
|
||||||
if (currentValue === 'value') {
|
if (currentValue === 'value') {
|
||||||
currentValue = 'no';
|
currentValue = 'no';
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user