Skip to content

Commit

Permalink
test(select): hide toggle fill button on ios
Browse files Browse the repository at this point in the history
  • Loading branch information
brandyscarney committed Jan 23, 2025
1 parent f6da04d commit 66d6b07
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion core/src/components/select/test/bottom-content/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</style>
</head>

<body>
<body onLoad="onLoad()">
<ion-app>
<ion-header>
<ion-toolbar>
Expand Down Expand Up @@ -111,6 +111,15 @@ <h2>Helper Text: Wrapping</h2>
</ion-app>

<script>
// Hide the toggle fill button on ios mode since it's not supported
function onLoad() {
const toggleFillButton = document.querySelector('button');

if (Ionic.mode === 'ios' && toggleFillButton) {
toggleFillButton.style.display = 'none';
}
}

const selects = document.querySelectorAll('ion-select');

function toggleFill() {
Expand Down

0 comments on commit 66d6b07

Please sign in to comment.