Skip to content

rax-textinput 在 iOS 上删除中间的文字光标跳转到末尾 #464

@ClarkXia

Description

@ClarkXia

复现代码:

import { createElement, useState } from 'rax';
import View from 'rax-view';
import TextInput from 'rax-textinput';

import styles from './index.module.css';

export default function Home() {
  let [value, setValue] = useState('');

  const handleInput = (e) => {
    setValue(e.value);
  }

  return (
    <View className={styles.homeContainer}>
      请输入文案:
      <TextInput 
        className={styles.input}
        value={value}
        onInput={handleInput}
      />
      {value}
    </View>
  );
}

复现视频:

trim.5A731E43-E818-4F9E-81D5-E70F9AC011CD.MOV

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions