Skip to content

v4.0.0-alpha.5

Pre-release
Pre-release
Compare
Choose a tag to compare
@oliviertassinari oliviertassinari released this 23 Mar 21:05
Mar 23, 2019

A big thanks to the 23 contributors who made this release possible!

Here are some highlights ✨:

@material-ui/[email protected]

Breaking changes

  • [TextField] Prevent fullwidth textfield expanding the screen (#14988) @fmcintosh

    Change the default box sizing model of the InputBase. It uses the following CSS now:

    box-sizing: border-box;

    It solves issues with the fullWidth prop.

  • [Modal] Ignore event.defaultPrevented (#14991) @oliviertassinari

    The new logic closes the Modal even if event.preventDefault() is called on the key down escape event.
    event.preventDefault() is meant to stop default behaviors like clicking a checkbox to check it, hitting a button to submit a form, and hitting left arrow to move the cursor in a text input etc.
    Only special HTML elements have these default behaviors.
    People should use event.stopPropagation() if they don't want to trigger a onClose event on the modal.

Changes

@material-ui/[email protected]

  • [test] Remove test-only class wrappers for higher-order components (#15017) @eps1lon

Docs

Core

  • [core] Refactor a subset of components from classes to functions (#14854) @mbrookes
  • [benchmark] Use deterministic version tags (#14968) @eps1lon
  • [test] Remove test-only class wrappers for higher-order components (#15017) @eps1lon