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

TypeError

rishikeshpatel opened this issue · 0 comments

Type of issue

  • [x ] Bug

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.

  • Operating System: ... windows 10