className移除后某些css属性没有相应的移除

Open
#265 0 comments 0 reactions 1 assignee View on GitHub

@AdamCaoQAQ is already working on this.

Since Aug 19, 2021.

Assessment

This issue has not been assessed yet.

Description

bug Platform: tenon

描述

className移除后某些css属性没有相应的移除

Hummer version:

@hummer/[email protected]

复现步骤

  1. 参考下面demo

预期结果

1 希望透明度为1

样例代码、屏幕截图或者仓库链接

.text {
  padding: 32px;
  font-size: 50px;
  opacity: 1;
}
.text-md {
  opacity: 0;
}

import React, { useState } from 'react';
import classNames from "classnames";

export default () => {
  const [md, setMD] = useState(false);
  const viewClassName = classNames("text",{
    'text-md': md
  });
  return (
    <text onTap={() => setMD(!md)} className={viewClassName}>hello word</text>
  )
};

Dominant language
Objective-C
Stars
1.4k
Forks
186
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from didi/Hummer

All issues in didi/Hummer

Similar issues

More Objective-C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.