Skip to content

Commit 2c62490

Browse files
committed
test(input): hide toggle fill button on ios
1 parent 8fa3ba1 commit 2c62490

File tree

1 file changed

+10
-1
lines changed
  • core/src/components/input/test/bottom-content

1 file changed

+10
-1
lines changed

core/src/components/input/test/bottom-content/index.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
</style>
3636
</head>
3737

38-
<body>
38+
<body onLoad="onLoad()">
3939
<ion-app>
4040
<ion-header>
4141
<ion-toolbar>
@@ -130,6 +130,15 @@ <h2>Counter: with Error</h2>
130130
</ion-app>
131131

132132
<script>
133+
// Hide the toggle fill button on ios mode since it's not supported
134+
function onLoad() {
135+
const toggleFillButton = document.querySelector('button');
136+
137+
if (Ionic.mode === 'ios' && toggleFillButton) {
138+
toggleFillButton.style.display = 'none';
139+
}
140+
}
141+
133142
const customCounterInput = document.querySelector('ion-input#custom-counter');
134143
customCounterInput.counterFormatter = (inputLength, maxLength) => {
135144
const length = maxLength - inputLength;

0 commit comments

Comments
 (0)