Azure / azure-iot-pcs-remote-monitoring-dotnet

Azure IoT .NET solution for Remote Monitoring
MIT License
162 stars 95 forks source link

TypeError #154

Closed rishikeshpatel closed 5 years ago

rishikeshpatel commented 5 years ago

Type of issue

Description

... When you try to filter the list of devices based on device group using DeviceGroupDropDown, it will work just fine in case if you select one of the option available in the select box. However when you try to filter by typing in the keyword and press backspace key to clear what you just typed, it will produce a error saying "TypeError: cannot read property 'value' of null".

Screenshot

error

Steps to reproduce

  1. Click on the DeviceGroupDropDown on dashboard panel and type a device group name or type any character.
  2. Press backspace to erase the typed character
  3. you should get the type error now

Possible solution

... before calling the OnChange() method we can check if 'value' parameter is null or not.