From 2ed91247362f81c4398c2ed23096f1e4b95824e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 16 Sep 2020 13:29:59 +0200 Subject: [PATCH] InputControl: Fixed using InputControl in unit tests from plugins (#27615) --- packages/grafana-ui/src/components/InputControl.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/grafana-ui/src/components/InputControl.tsx b/packages/grafana-ui/src/components/InputControl.tsx index 792a78dea58..ab9d7a4771f 100644 --- a/packages/grafana-ui/src/components/InputControl.tsx +++ b/packages/grafana-ui/src/components/InputControl.tsx @@ -1 +1,5 @@ -export { Controller as InputControl } from 'react-hook-form'; +/** + * Rollup does not support renamed exports so do not change this to export { Controller as InputControl } ... + */ +import { Controller } from 'react-hook-form'; +export const InputControl = Controller;