How to fix the WeChat applet input jitter problem

How to fix the WeChat applet input jitter problem

Find the problem

Let's look at the problem first. In the mini program, using Vant's Dialog component + mini program element input component, the placeholder text will shake when it pops up, that is, the initial position is slightly above, and then shakes to the correct position.

Problematic screen recording:

After trying, fix the problem:

This is how I fixed it:

.dialog-input,
.dialog-input-placeholder {
 height: 80rpx !important;
 display: flex;
 align-items: center;
}

The above is dedicated to friends who have encountered the same pit, and my almost whole day! 😭

Summarize

This is the end of this article about how to fix the WeChat Mini Program input jitter problem. For more related WeChat Mini Program input jitter content, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • WeChat applet input box control detailed explanation and examples (multiple examples)
  • WeChat applet input box detailed explanation and simple example
  • WeChat applet implements simple input regular expression verification function example
  • How to add small icons to the WeChat applet input box
  • WeChat Mini Program (Seventeen) Input Component Detailed Introduction

<<:  Some functions of using tcpdump to capture packets in the Linux command line

>>:  MySQL database must know sql statements (enhanced version)

Recommend

JavaScript ES new feature block scope

Table of contents 1. What is block scope? 2. Why ...

Linux uses if to determine whether a directory exists.

How to use if in Linux to determine whether a dir...

MySQL sequence AUTO_INCREMENT detailed explanation and example code

MySQL sequence AUTO_INCREMENT detailed explanatio...

How much do you know about JavaScript inheritance?

Table of contents Preface The relationship betwee...

How to notify users of crontab execution results by email

symptom I set a crontab task on a centos7 host, b...

Use of Linux ls command

1. Introduction The ls command is used to display...

MySQL data loss troubleshooting case

Table of contents Preface On-site investigation C...

Vue implements setting multiple countdowns at the same time

This article example shares the specific code of ...

Two methods of implementing automatic paging in Vue page printing

This article example shares the specific code of ...

The difference between html empty link href="#" and href="javascript:void(0)"

# contains a location information. The default anc...

Introduction to Linux environment variables and process address space

Table of contents Linux environment variables and...