Skip to content

Commit 66d6b07

Browse files
committed
test(select): hide toggle fill button on ios
1 parent f6da04d commit 66d6b07

File tree

1 file changed

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

1 file changed

+10
-1
lines changed

core/src/components/select/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>
@@ -111,6 +111,15 @@ <h2>Helper Text: Wrapping</h2>
111111
</ion-app>
112112

113113
<script>
114+
// Hide the toggle fill button on ios mode since it's not supported
115+
function onLoad() {
116+
const toggleFillButton = document.querySelector('button');
117+
118+
if (Ionic.mode === 'ios' && toggleFillButton) {
119+
toggleFillButton.style.display = 'none';
120+
}
121+
}
122+
114123
const selects = document.querySelectorAll('ion-select');
115124

116125
function toggleFill() {

0 commit comments

Comments
 (0)