facebookarchive/draft-js

'video' component in 'media' example looks odd in Safari/Firefox

开放

#1,310 创建于 2017年7月28日

 (3 条评论) (0 个反应) (0 位负责人)JavaScript (2,646 个派生)batch import
bugdocumentationfirefoxhelp wantedsafari

仓库指标

星标
 (22,554 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Do you want to request a feature or report a bug? This is a bug in the following example file: https://github.com/facebook/draft-js/blob/master/examples/draft-0-10-0/media/media.html

What is the current behavior? Steps to reproduce:

  1. Open the 'media.html' file in Firefox or Safari.
  2. Click 'Add Video'.
  3. Enter 'media.mp4' in the text input.
  4. Notice that the video component looks weird. See attached screenshot.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started: https://jsfiddle.net/stopachka/m6z0xn4r/.

What is the expected behavior? It should not have a semi-transparent area or hang out of the Draft composer area.

Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js? Safari/Firefox with the latest Draft on the master branch. screen shot 2017-07-28 at 9 20 32 am

贡献者指南