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

A complete list of meta tag settings for mobile devices

Preface When I was studying the front end before,...

Detailed explanation of Vue-Jest automated testing basic configuration

Table of contents Install Configuration Common Mi...

Handwriting implementation of new in JS

Table of contents 1 Introduction to the new opera...

Directory permissions when creating a container with Docker

When I was writing a project yesterday, I needed ...

Detailed tutorial on uploading and configuring jdk and tomcat on linux

Preparation 1. Start the virtual machine 2. git t...

Implementation of JavaScript downloading linked images and uploading them

Since we are going to upload pictures, the first ...

Detailed installation steps for MySQL 8.0.11

This article shares the installation steps of MyS...

Detailed steps for Linux account file control management

In the Linux system, in addition to various accou...

Introduction to the use of CSS3 filter attribute

1. Introduction When writing animation effects fo...

Solution to ERROR 1054 (42S22) when changing password in MySQL 5.7

I have newly installed MySQL 5.7. When I log in, ...

How to build a new image based on an existing image in Docker

Building new images from existing images is done ...

CocosCreator implements skill cooling effect

CocosCreator realizes skill CD effect There are s...

Mysql 5.7.17 winx64 installation tutorial on win7

Software version and platform: MySQL-5.7.17-winx6...