Rmwc: TextField notched outline breaks when resized

Created on 19 Dec 2018  路  9Comments  路  Source: jamesmfriedman/rmwc

Sandbox

https://codesandbox.io/s/98v61v5wjp

Description

  • RMWC Version: 4.0.1
  • Build system: Webpack

When a <TextField outlined /> has content its border turns into an SVG path. This SVG path breaks when the component resizes.

The component should behave as the MDC notched outline. It has the border divided in three sections to allow the notch, instead of using SVG.

Fixed in Upcoming Release

Most helpful comment

This has been a running issue with MDC. This was an issue I had open for it a long time ago. https://github.com/material-components/material-components-web/issues/3231

The good news is, with MDC 0.42.0, they've refactored the notched outline so it should work appropriately. The Holidays have pushed the next RMWC release a little behind, but you can expect this early January.

All 9 comments

I feel your pain. I'm suffering this too...

Same here.

This has been a running issue with MDC. This was an issue I had open for it a long time ago. https://github.com/material-components/material-components-web/issues/3231

The good news is, with MDC 0.42.0, they've refactored the notched outline so it should work appropriately. The Holidays have pushed the next RMWC release a little behind, but you can expect this early January.

Thanks @jamesmfriedman 馃槃

Is there an ETA on 0.42 support? That SVG notched outline is causing us display issues. In the interim does anyone know how to force a Select to repaint?

@robcaldecottvelo 0.42 support is coming along with the Typescript refactor. This is the optimum time to do that since I know the MDC team is also doing a TS refactor and won't release until it is done. The TS refactor for RMWC is well underway on the TS branch, I'm expecting another week to week and half to make sure everything is buttoned up and well tested.

I looked into both the code on the RMWC side as well as the MDC side. I haven't verified this works, but it is my best guess for you if this is a pressing issue. Since the SVG notched outlines have been around for a year, I don't imagine this is a new issue for you.

  • Use a ref to get access to the Select component. `