Skip to content

Commit

Permalink
Merge branch 'master' into junyi/modern-linux-routing
Browse files Browse the repository at this point in the history
  • Loading branch information
jyyi1 authored Dec 9, 2024
2 parents e2bde4d + 82f195b commit 4aeaa02
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

import type {MdFilledTextField} from '@material/web/all.js';

import '@material/mwc-textfield';

import {LitElement, html, css} from 'lit';
import {customElement, property, state, query} from 'lit/decorators.js';
import '@material/web/all.js';
Expand Down Expand Up @@ -54,14 +56,18 @@ export class ServerRenameDialog extends LitElement {
return html`
<md-dialog .open=${this.open} @close=${this.handleClose} quick>
<header slot="headline">${this.localize('server-rename')}</header>
<md-filled-text-field
<!--
On older versions of iOS, md-textfield triggers itself indefinitely here,
so we must use mwc-textfield
-->
<mwc-textfield
slot="content"
maxlength="100"
maxLength="100"
value="${this.internalServerName}"
@input=${(e: Event) => {
this.internalServerName = (e.target as HTMLInputElement).value;
}}
></md-filled-text-field>
></mwc-textfield>
<fieldset slot="actions">
<md-text-button @click=${this.handleClose}
>${this.localize('cancel')}</md-text-button
Expand Down

0 comments on commit 4aeaa02

Please sign in to comment.