cdkDrag override transform styles
- 主要言語
- TypeScript
- スター
- 25k
- フォーク
- 6.8k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 91
説明
#### Bug, feature request, or proposal:
Bug
#### What is the expected behavior?
When I have transform style on my draggable element, after dragging the transform style will remain.
#### What is the current behavior?
When I have transform style on my draggable element, after start dragging the transform style is overridden.
#### What are the steps to reproduce?
For example add `transform: rotate(45deg);` to `.example-box` here:
https://stackblitz.com/angular/lkdvnnkjmlq?file=src%2Fapp%2Fcdk-drag-drop-overview-example.css
You can notice that after dragging the rotate will disappear.
But, if you will add the `transform: rotate(45deg);` in `style` attribute you will see that the expected behavior is achieved.
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
@angular/cdk/drag-drop 8.2.3
コントリビューションガイド
調査の方向性
リンクされた StackBlitz の再現例から始め、.example-box の transform に対する Angular CDK drag-drop の処理を調べてください。rotate(45deg) のようなスタイルシートの transform がドラッグ後も維持されることを確認しつつ、インラインスタイルの例で示されている動作も維持してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100