Skip to content

Commit

Permalink
test(textarea): 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 71bede9 commit 768a8bc
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion core/src/components/textarea/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 @@ -130,6 +130,15 @@ <h2>Counter: with Error</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 customCounterTextarea = document.querySelector('ion-textarea#custom-counter');
customCounterTextarea.counterFormatter = (inputLength, maxLength) => {
const length = maxLength - inputLength;
Expand Down

0 comments on commit 768a8bc

Please sign in to comment.